package com.yksj.healthtalk.net.http;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Iterator;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.apache.http.message.BasicHeader;
import org.universalimageloader.core.ImageLoader;
import org.universalimageloader.utils.StorageUtils;

import android.content.Context;
import android.text.TextUtils;
import android.util.Log;

import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;
import com.yksj.healthtalk.entity.CustomerInfoEntity;
import com.yksj.healthtalk.entity.GroupInfoEntity;
import com.yksj.healthtalk.entity.MessageEntity;
import com.yksj.healthtalk.entity.ShopImageEntitiy;
import com.yksj.healthtalk.net.socket.SmartControlClient;
import com.yksj.healthtalk.net.socket.SmartFoxClient;
import com.yksj.healthtalk.ui.app.HTalkApplication;
import com.yksj.healthtalk.utils.SystemUtils;
import com.yksj.healthtalk.utils.TimeUtil;

/**
 * 
 * 所有执行http请求操作调用此类
 * 
 * @author zhao
 */
public class HttpRestClient {
	private static HttpUrls mHttpUrls;// = new HttpUrls();
	public static AsyncHttpClient mAsyncHttpClient = new AsyncHttpClient();

	public static Map<String,String> getDefaultHeaders(){
		return mAsyncHttpClient.getHeaders();
	}
	
	public static HttpUrls getmHttpUrls() {
		return mHttpUrls;
	}

	public static void setmHttpUrls(HttpUrls mHttpUrls) {
		HttpRestClient.mHttpUrls = mHttpUrls;
	}

	public static void addHttpHeader(String key, String value) {
		if (mAsyncHttpClient != null) {
			mAsyncHttpClient.addHeader(key, value);
		}
	}

	/**
	 * 例子命名以doHttp开头
	 * 
	 * @param name
	 * @param pas
	 * @param handler
	 */
	public static void doHttpLogin(String name, String pas,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("name", name);
		requestParams.put("pas", pas);
		mAsyncHttpClient.post(mHttpUrls.URL_LOAD_INIT, requestParams, handler);
	}

	/**
	 * 
	 * @Title: doHttpGetBackPsw
	 * @Description: 重置密码
	 * @param @param phone
	 * @param @param auth
	 * @param @param pas
	 * @param @param handler
	 * @return void
	 * @throws
	 */
	public static void doHttpResetPasswd(String phone, String auth, String pas,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("type", "updatepsw");
		requestParams.put("phone", phone);
		requestParams.put("code", auth);
		requestParams.put("psw", pas);
		mAsyncHttpClient.post(mHttpUrls.URL_NEW_PAS, requestParams, handler);
	}

	/**
	 * 修改密码
	 * 
	 * @param email
	 * @param what
	 */
	public static void doHttpChangePassword(String id, String pas,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		// requestParams.put("PARAMETER1", "userPassChange");
		requestParams.put("CUSTOMERID", id);
		requestParams.put("PASSWORD", pas);
		mAsyncHttpClient.post(mHttpUrls.URL_NEW_PAS, requestParams, handler);
	}

	/**
	 * @Title: doHttpCreatAccount
	 * @Description:创建新的账号
	 * @param @param phone
	 * @param @param auth
	 * @param @param pas
	 * @param @param handler
	 * @return void
	 * @throws
	 */
	public static void doHttpCreatAccount(String imeiId, String pas,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("code", imeiId);
		requestParams.put("psw", pas);
		mAsyncHttpClient.post(mHttpUrls.URL_CREAT_ACCOUNT, requestParams,
				handler);
	}

	/**
	 * 检查版本更新
	 * 
	 * @param what
	 */
	public static void doHttpCheckAppVersion(String version,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
//		requestParams.put("OSType", "1");
		requestParams.put("version", version);
		requestParams.put("iostype", "1");
		mAsyncHttpClient.post(mHttpUrls.URL_APP_VERSIONCHECK, requestParams,handler);
	}

	/**
	 * 
	 * @Title: requestOtherBlackList
	 * @Description: 查询剩余黑名单的人
	 * @param @param id
	 * @param @param what
	 * @return void
	 * @throws
	 */
	public static void doHttpRequestOtherBlackList(String id,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER", id);
		requestParams.put("TYPE", "2");
		mAsyncHttpClient.post(mHttpUrls.URL_LOAD_INIT1, requestParams, handler);
	}

	/**
	 * 
	 * 登陆加载用户列表
	 */
	public static void doHttploadFriendList(String userId,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER", userId);
		mAsyncHttpClient.post(mHttpUrls.URL_LOAD_INIT1, requestParams, handler);
	}

	/**
	 * 搜索医生和医生话题
	 * 
	 * @param techang
	 *            特长
	 * @param Office
	 *            科室
	 * @param title
	 *            职称
	 * @param number
	 *            一次请求数量
	 * @param page
	 *            页数
	 * @param type
	 *            1 搜群 2 搜好友
	 * @param what
	 */
	public static void doHttpSearchDoctorTheme(String value, int page,
			AsyncHttpResponseHandler handler) {
		try {
			org.json.JSONObject json = new org.json.JSONObject(value);
			RequestParams requestParams = new RequestParams();
			requestParams.put("techang", json.getString("techang"));
			requestParams.put("office", json.getString("office"));
			requestParams.put("title", json.getString("title"));
			requestParams.put("pagesize", json.getString("pagesize"));
			requestParams.put("type", json.getString("type"));
			requestParams.put("gname", json.getString("gname"));
			requestParams.put("pagenum", String.valueOf(page));
			mAsyncHttpClient.post(mHttpUrls.URL_SEARCH_DOCTOR_THEME,
					requestParams, handler);
		} catch (org.json.JSONException e) {
			e.printStackTrace();
		}
	}

	/**
	 * 上传通讯录
	 * 
	 * @param value
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public static void doHttpUploadContacts(String value, String id,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("TYPE", "findfriendPhone");
		requestParams.put("customerid", id);
		requestParams.put("parame", value);
		mAsyncHttpClient.post(mHttpUrls.URL_QUERY_HISTORY_MESSAGE, requestParams,
				handler);
	}

	/**
	 * 搜索健康友
	 * 
	 * @param id
	 * @return
	 */
	public static void doHttpRequestSearchFriends(String value,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER", value);
		mAsyncHttpClient.post(mHttpUrls.URL_QUERY_HISTORY_MESSAGE, requestParams,
				handler);
	}

	/**
	 * 设置http连接属性
	 * 
	 * @param httpURLConnection
	 */
	/*
	 * private static void setHttpURLConnectionProperty(HttpURLConnection
	 * httpURLConnection,long fileLength) { // 缓存的最长时间 //
	 * httpURLConnection.setReadTimeout(5 * 1000);
	 * httpURLConnection.setConnectTimeout(1000 * 60); // 允许输入
	 * httpURLConnection.setDoInput(true); //允许输出
	 * httpURLConnection.setDoOutput(true); // 不允许缓存
	 * httpURLConnection.setUseCaches(false); // 请求方式 try {
	 * httpURLConnection.setRequestMethod("POST"); } catch (ProtocolException e)
	 * { e.printStackTrace(); }
	 * httpURLConnection.setRequestProperty(HTTP.CONN_DIRECTIVE,
	 * HTTP.CONN_KEEP_ALIVE);
	 * httpURLConnection.setRequestProperty(HTTP.CHARSET_PARAM, HTTP.UTF_8); //
	 * 伪造请求头 httpURLConnection.setRequestProperty("Content-Type",
	 * "multipart/form-data; boundary="+BOUNDARY);
	 * httpURLConnection.setRequestProperty
	 * ("Content-Length",String.valueOf(fileLength)); //
	 * 设置每次传输的流大小，可以有效防止手机因为内存不足崩溃 // 此方法用于在预先不知道内容长度时启用没有进行内部缓冲的 HTTP 请求正文的流。
	 * httpURLConnection.setChunkedStreamingMode(128 * 1024);// 128K }
	 */

	/**
	 * 新建聊天室
	 * 
	 * @param groupID
	 *            群ID 创建为""
	 * @param userFileName
	 *            头像图片名称 系统默认 0
	 * @param recordName
	 *            聊天室名称
	 * @param desc
	 *            聊天室描述
	 * @param noteId
	 *            关注大类id
	 * @param infoLayid
	 *            信息层面ID
	 * @param custId
	 *            创建者ID
	 * @param publicCustInfo
	 *            是否公开创建者信息
	 */
	/*
	 * public static String doHttpCreateGroup(String path,String groupId,String
	 * value) { JSONObject json; HttpURLConnection httpURLConnection = null;
	 * DataOutputStream outPut = null; FileInputStream fileInput = null; File
	 * file = null; long fileLength = 0; if(path != null){ file = new
	 * File(path); fileLength = file.length(); } ////Log.i(TAG, "上传文件大小:" +
	 * fileLength+":"); try { // 初始化发送参数 ////Log.i("test", value); // 上传头文件准备
	 * String strHeader = createFileUploadBeginTag(value,value); fileLength =
	 * fileLength + strHeader.length(); URL url = new
	 * URL(mHttpUrls.URL_NEW_GROUP); httpURLConnection = (HttpURLConnection)
	 * url.openConnection(); // http参数设置
	 * setHttpURLConnectionProperty(httpURLConnection, fileLength);
	 * httpURLConnection.connect(); outPut = new
	 * DataOutputStream(httpURLConnection.getOutputStream()); ////Log.i(TAG, "："
	 * + strHeader); // 结尾 outPut.writeUTF(strHeader);
	 * //outPut.writeBytes(strHeader); if(path != null){ fileInput = new
	 * FileInputStream(file); byte[] buffer = new byte[1024 * 4]; int length;
	 * while ((length = fileInput.read(buffer)) > 0) { outPut.write(buffer, 0,
	 * length); } } outPut.writeBytes(FILEUPLOAD_ENDTAG); outPut.flush();
	 * 
	 * // 返回上传状态 int stateCode = httpURLConnection.getResponseCode();
	 * 
	 * // 响应请求失败 ////Log.i(TAG, "上传返回状态" + stateCode);
	 * 
	 * if (stateCode != 200) { return null; } InputStream inputStream =
	 * httpURLConnection.getInputStream(); int first = inputStream.read(); int
	 * lengths = inputStream.available(); byte[] bytes = new byte[lengths+1];
	 * bytes[0] = (byte)first; inputStream.read(bytes,1,lengths); // 返回上传的文件名
	 * String strResut = new String(bytes, 0, lengths+1); ////Log.i(TAG,
	 * "文件上传成功" + strResut); return strResut; } catch (IOException e) {
	 * //Log.e(TAG, "文件上传io异常"+e.getMessage()); }finally { try { if
	 * (httpURLConnection != null)httpURLConnection.disconnect(); if (outPut !=
	 * null)outPut.close(); if (fileInput != null)fileInput.close(); } catch
	 * (IOException e) { } } return null; }
	 */

	/**
	 * 文件上传头
	 * 
	 * @param jsonObj
	 * @param fileName
	 * @return
	 */
	/*
	 * private static final String createFileUploadBeginTag(String filename,
	 * String name) { final StringBuilder sb = new StringBuilder();
	 * sb.append("--"); sb.append(BOUNDARY); sb.append("\r\n");
	 * sb.append("Content-Disposition: form-data; "); sb.append("name=\"");
	 * sb.append(name); sb.append("\"; "); sb.append("filename=\"");
	 * sb.append(filename); sb.append("\""); sb.append("\r\n");
	 * sb.append("Content-Type: binary/data;charset=UTF-8"); sb.append("\r\n");
	 * sb.append("\r\n"); return sb.toString(); }
	 */

	/**
	 * 通过手机获取验证码
	 * 
	 * @param userId
	 */
	public static void doHttpGetAuthCode(String phone,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("phone", phone);
		mAsyncHttpClient.post(mHttpUrls.URL_GET_AUTH_CODE_SETTING, requestParams,handler);
	}

	/**
	 * 通过手机找回密码
	 * @param userId
	 */
	public static void doHttpFindPassword(String phone,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("phone", phone);
		requestParams.put("Type","findPasword");
		mAsyncHttpClient.post(mHttpUrls.URL_GET_AUTH_CODE_SETTING, requestParams,handler);
	}
	
	/**
	 * 根据经纬度查询所在地区
	 * 
	 * @param what
	 * @param lat
	 * @param lng
	 */
	public static void doHttpQueryLocation(String lat, String lng,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("lat", lat);
		requestParams.put("lng", lng);
		mAsyncHttpClient.post(mHttpUrls.GET_LOCATION, requestParams, handler);
	}

	/**
	 * 查询群信息
	 * 
	 * @param id
	 *            群id
	 * @return
	 */
	public static void doHttpQueryGroupInfo(String id,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("parame", id);
		mAsyncHttpClient.post(mHttpUrls.URL_QUERY_GOUPINFO, requestParams,
				handler);
	}

	/**
	 * 评分
	 * 
	 * @param email
	 * @param what
	 */
	public static void doHttpSetGrade(AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.URL_SETTING_GRADE, handler);
	}

	/**
	 * 绑定邮箱
	 * 
	 * @param userId
	 */
	public static void doHttpSetEmailBound(String email, String type,
			String customerid, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("email", email);
		requestParams.put("type", "saveEmailAndCode");
		requestParams.put("customerid", customerid);
		mAsyncHttpClient.post(mHttpUrls.URL_AUTH_EMAIL, requestParams, handler);
	}

	/**
	 * 绑定手机
	 * 
	 * @param userId
	 */
	public static void doHttpSetPhoneBound(String phone, String code,
			String psw, String userId, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("phone", phone);
		requestParams.put("code", code);
		requestParams.put("psw", psw);
		requestParams.put("customerid", userId);
		mAsyncHttpClient.post(mHttpUrls.URL_CHANGE_PHONE_BOUND, requestParams,
				handler);
	}

	/**
	 * 解除手机绑定
	 * 
	 * @param userId
	 * @param handler
	 */
	public static void doHttpUnPhoneBind(String userId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerid", userId);
		params.put("Type", "phone");
		mAsyncHttpClient
				.post(mHttpUrls.URL_UNBIND_PHONE_EMAIL, params, handler);
	}

	/**
	 * 解除邮箱绑定
	 */
	public static void doHttpUnEmailBind(String userId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerid", userId);
		params.put("Type", "email");
		mAsyncHttpClient
				.post(mHttpUrls.URL_UNBIND_PHONE_EMAIL, params, handler);
	}

	/**
	 * 查询头像 http://192.168.16.109:9090/sms_web/HeadDownLoadServlet.do?path=
	 * 
	 * @param param
	 * @param eventListener
	 */
	public static void doHttpSearchPersonheadImage(String path,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYHEADIMAGE + path, handler);

	}

	/**
	 * 
	 * @Title: doHttpObtainVerificationCode
	 * @Description: 获取验证码
	 * @param @param phone
	 * @param @param handler
	 * @return void
	 * @throws
	 */
	public static void doHttpObtainVerificationCode(boolean isEmail,
			String phone, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("phone", phone);
		requestParams.put("Type", "findPasword");
		mAsyncHttpClient.post(mHttpUrls.URL_GET_AUTH_CODE_SETTING, requestParams,
				handler);

	}

	/**
	 * @Title: doHttpRequestKnowledge
	 * @Description: 医库 检查和科室的网络请求
	 * @param @param PARAMETER1
	 * @param @param PARAMETER2
	 * @param @param PARAMETER3
	 * @param @param PARAMETER4
	 * @param @param PARAMETER5
	 * @param @param PARAMETER6
	 * @param @param PARAMETER7
	 * @param @param handler
	 * @return void
	 * @throws
	 */
	public static void doHttpRequestKnowledge(String PARAMETER1,
			String PARAMETER2, String PARAMETER3, String PARAMETER4,
			String PARAMETER5, String PARAMETER6, String PARAMETER7,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER1", PARAMETER1);
		requestParams.put("PARAMETER2", PARAMETER2);
		requestParams.put("PARAMETER3", PARAMETER3);
		requestParams.put("PARAMETER4", PARAMETER4);
		requestParams.put("PARAMETER5", PARAMETER5);
		requestParams.put("PARAMETER6", PARAMETER6);
		requestParams.put("PARAMETER7", PARAMETER7);
		requestParams.put("OSType", "2");
		Log.e("gg", requestParams.toString());
		mAsyncHttpClient.post(mHttpUrls.URL_QUERYKNOWLEDGE, requestParams,
				handler);
		;
	}

	/**
	 * 查询客户信息
	 * 
	 * @param id
	 *            客户id
	 * @return
	 */
	public static void doHttpQueryCustomerInfo(String id, String customerID,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("parame", id);
		mAsyncHttpClient.post(mHttpUrls.URL_QUERY_CUSTOMERINFO, requestParams,
				handler);
	}

	/***
	 * 上传用户头像图片
	 * 
	 * @param fileName
	 * @param newName
	 * @param flag
	 *            true用户头像，false相册头像
	 * @return
	 */
	/*
	 * public static String doHttpUploadFile(File fileName,String
	 * newName,boolean flage) { String end = "\r\n"; String twoHyphens = "--";
	 * String boundary = "*****"; URL url=null; try { if(flage){ url = new
	 * URL(mHttpUrls.URL_HEAD_IMAGE);}else{ url = new
	 * URL(mHttpUrls.URL_ALBUM_IMAGE); } HttpURLConnection con =
	 * (HttpURLConnection) url.openConnection(); 允许Input、Output，不使用Cache
	 * con.setDoInput(true); con.setDoOutput(true); con.setUseCaches(false);
	 * 设置传送的method=POST con.setRequestMethod("POST"); setRequestProperty
	 * con.setRequestProperty("Charset", "UTF-8");
	 * con.setRequestProperty("Content-Type", "multipart/form-data;boundary=" +
	 * boundary); DataOutputStream ds = new
	 * DataOutputStream(con.getOutputStream()); ds.writeBytes(twoHyphens +
	 * boundary + end); ds.write(("Content-Disposition: form-data; " +
	 * "name=\"file1\";filename=\"" + newName + "\"" + end).getBytes());
	 * ds.writeBytes(end); 取得文件的FileInputStream FileInputStream fStream = new
	 * FileInputStream(fileName); 设置每次写入1024bytes int bufferSize = 1024; byte[]
	 * buffer = new byte[bufferSize]; int length = -1; 从文件读取数据至缓冲区 while
	 * ((length = fStream.read(buffer)) != -1) { 将资料写入DataOutputStream中
	 * ds.write(buffer, 0, length); } ds.writeBytes(end);
	 * ds.writeBytes(twoHyphens + boundary + twoHyphens + end); close streams
	 * ds.flush(); fStream.close(); ds.close(); int stateCode =
	 * con.getResponseCode(); if (stateCode != 200) return null;
	 * 
	 * 取得Response内容 InputStream is = con.getInputStream(); int first =
	 * is.read(); int lengths = is.available(); byte[] bytes = new
	 * byte[lengths+1]; bytes[0] = (byte)first; is.read(bytes,1,lengths); //
	 * 返回上传的文件名 String strResut = new String(bytes, 0, lengths+1,"UTF-8");
	 * ////Log.i(TAG, "文件上传" + strResut); is.close(); return strResut; } catch
	 * (Exception e) {
	 * 
	 * } return null; }
	 */

	/**
	 * @Title: doHttpRequestKnowledge
	 * @Description: 医库 检查和科室的网络请求
	 * @param @param PARAMETER1
	 * @param @param PARAMETER2
	 * @param @param PARAMETER3
	 * @param @param PARAMETER4
	 * @param @param PARAMETER5
	 * @param @param PARAMETER6
	 * @param @param PARAMETER7
	 * @param @param handler
	 * @return void
	 * @throws
	 */
	public static void doHttpRequestKnowledge(String PARAMETER1,
			String PARAMETER2, String PARAMETER3, String PARAMETER4,
			String PARAMETER5, String PARAMETER6,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER1", PARAMETER1);
		requestParams.put("PARAMETER2", PARAMETER2);
		requestParams.put("PARAMETER3", PARAMETER3);
		requestParams.put("PARAMETER4", PARAMETER4);
		requestParams.put("PARAMETER5", PARAMETER5);
		requestParams.put("PARAMETER6", PARAMETER6);
		requestParams.put("OSType", "2");
		Log.e("gg", requestParams.toString());
		mAsyncHttpClient.post(mHttpUrls.URL_QUERYKNOWLEDGE, requestParams,
				handler);
		;
	}

	/**
	 * 查询客户信息
	 * 
	 * @param id
	 *            客户id
	 * @return
	 */
	public static void doHttpqueryCustomerInfo(String id,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("parame", id);
		mAsyncHttpClient.post(mHttpUrls.URL_QUERY_CUSTOMERINFO, requestParams,
				handler);
	}

	public static String getGoogleMapUrl(String lt, String ln) {
		// http://www.h-tlk.mobi/sms_web/small_location_mark.png
//		http://api.map.baidu.com/staticimage?markers=%D6%D0%B9%D8%B4%E5&zoom=19&center=116.403874,39.914889&
		//http://api.map.baidu.com/staticimage?width=400&height=400&center=116.379064,39.959871&markers=116.379064,39.959871&zoom=16&markerStyles=s,A,0xff0000
		StringBuffer stringBuffer = new StringBuffer(
				"http://api.map.baidu.com/staticimage?zoom=17&markerStyles=s,A,0xff0000");
		stringBuffer.append("&width=200&height=200");
		stringBuffer.append("&center=");
		stringBuffer.append(ln);
		stringBuffer.append(",");
		stringBuffer.append(lt);
		stringBuffer.append("&markers=");
		stringBuffer.append(ln);
		stringBuffer.append(",");
		stringBuffer.append(lt);
		/*stringBuffer
				.append("&markerStyles=-1,http://www.h-tlk.mobi/sms_web/small_location_mark.png");*/
//		stringBuffer.append(String.valueOf(lt));
//		stringBuffer.append(",");
//		stringBuffer.append(ln);
//		stringBuffer.append("&zoom=15");
/*		stringBuffer.append("&sensor=false");
		stringBuffer.append("&maptype=roadmap");
		stringBuffer.append("&format=png");
		stringBuffer.append("&mobile=true");*/
		return stringBuffer.toString();
		// String urlStr=
		// "http://maps.google.com/maps/api/staticmap?language=zh-CN&center=39.9942100,116.3645000,13&zoom=14&size=300x200&maptype=roadmap%C2%A0%C2%A0%20&markers=color:blue|label:S|39.987889,116.350029&markers=color:green|label:G|39.9942100,116.3645000%C2%A0%C2%A0%20&markers=color:red|color:red|label:C|39.987889,116.350029&sensor=false";
	}

	/*
	 * public class User{ String id; String name; }
	 */
	/**
	 * @Title: doHttpRequestTheme
	 * @Description: 医库创建话题
	 * @param
	 * @return void
	 * @throws
	 */
	public static void doHttpRequestTheme(String PARAMETER1, String PARAMETER2,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER1", PARAMETER1);
		requestParams.put("PARAMETER2", PARAMETER2);
		mAsyncHttpClient.post(mHttpUrls.URL_QUERYTHEME, requestParams, handler);
		;
	}

	/**
	 * 程序异常日志报告
	 */
	public static void doHttpReportAppException(String log,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("log", log);
		requestParams.put("OSType", "1");
		mAsyncHttpClient.post(mHttpUrls.URL_APPEXCEPTION_REPORT, requestParams,
				handler);
	}

	/**
	 * @Title: requestAccount
	 * @Description: 找回多美号
	 * @param @param phone
	 * @param @param auth
	 * @param @param what
	 * @return void
	 * @throws
	 */
	public static void doHttpRequestAccount(String phone, String auth,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("type", "queryduomeihao");
		requestParams.put("phone", phone);
		requestParams.put("code", auth);
		mAsyncHttpClient.post(mHttpUrls.URL_NEW_PAS, requestParams, handler);
		;
	}

	/**
	 * 查找话题
	 * 
	 * @param mGroupInfoEntity
	 * @param sourceType
	 *            (0---全部，1---最新，2---最热，3---推荐)
	 * @param handler
	 */
	public static void doHttpRequestSearchGroup(
			GroupInfoEntity mGroupInfoEntity, int sourceType,
			AsyncHttpResponseHandler handler) {
		// PAGESIZE int
		// PAGENUM int
		// CUSTOMERID int
		try {
			JSONObject object = new JSONObject();
			object.put("TYPE", mGroupInfoEntity.getType());
			// 页数
			object.put("PAGESIZE", mGroupInfoEntity.getPagesize());
			// 数量
			object.put("PAGENUM", mGroupInfoEntity.getPagenum());
			// userid
			if (mGroupInfoEntity.getCreateCustomerID().equals("")) {
				return;
			} else {
				object.put("CUSTOMERID",
						Integer.valueOf(mGroupInfoEntity.getCreateCustomerID()));
			}

			switch (mGroupInfoEntity.getType()) {
			// 按照名称搜索话题
			/*
			 * case 0: object.put("GROUPNAME", mGroupInfoEntity.getName());
			 * break;
			 */
			// 最新最热推荐
			case 1:
				// UPPERID String
				// INFOID String
				// FLAG int
				// SOURCETYPE int (0---全部，1---最新，2---最热，3---推荐)
				String name = mGroupInfoEntity.getName();
				object.put("GROUPNAME", name == null ? "" : name);
				object.put(
						"UPPERID",
						mGroupInfoEntity.getUpperId() != null ? mGroupInfoEntity
								.getUpperId() : "0");
				object.put("FLAG", mGroupInfoEntity.getFlag());
				object.put("FLAGPLACING", mGroupInfoEntity.getFlagPlacing());
				object.put("SOURCETYPE", sourceType);
				object.put(
						"INFOID",
						mGroupInfoEntity.getInfoId() != null ? mGroupInfoEntity
								.getInfoId() : "0");
				break;
			// 点击广告搜索话题
			case 2:
				object.put("ADVERID", "");
				object.put("FLAG", 2);
				break;
			default:
				break;
			}

			// 网络请求
			RequestParams params = new RequestParams();
			params.put("PARAMETER", object.toString());
			mAsyncHttpClient.post(mHttpUrls.URL_SEARCH_SALON, params, handler);

		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

	/**
	 * 查找朋友
	 */
	public static void doHttpRequestSearchFriends(CustomerInfoEntity c,
			int sourceType, AsyncHttpResponseHandler handler) {
		// SOURCETYPE 0--最新 1--活跃 2--推荐 3--附近 4--同城
		// TYPE 0--找朋友 1--找医生 2--相同经历

		int sex = 0;
		String mSex;
		// 判断性别
		if ((mSex = c.getSex()) != null) {
			if (mSex.equalsIgnoreCase("2")) {
				sex = 2;
			} else if (mSex.equalsIgnoreCase("1")) {
				sex = 1;
			}
		}
		JSONObject object = new JSONObject();
		// 性别

		try {

			object.put("LATITUDE", c.getLatitude() != null ? c.getLatitude()
					: "");
			// 纬度
			object.put("LONGITUDE", c.getLongitude() != null ? c.getLongitude()
					: "");
			// 下一页的标记
			object.put("FLAG", c.getFlag());
			// TYPE 0--找朋友 1--找医生 2--相同经历
			object.put("TYPE", c.getType());
			object.put("CUSTOMERID", c.getId());
			// 0--最新 1--活跃 2--推荐 3--附近 4--同城
			object.put("SOURCETYPE", sourceType);
			object.put("COUNT", "");

			if (c.getType() == 0) {
				object.put("MINAGE", c.getMinAge());
				object.put("MAXAGE", c.getMaxAge() != 0 ? c.getMaxAge() : 100);
				// 个性标签
				object.put("INTEREST",
						c.getInterestCode() != null ? c.getInterestCode() : "");
				object.put("SEX", sex);
				// 地区编码
				object.put("AREA", c.getAreaCode());
				object.put("USERNAME",
						c.getUsername() != null ? c.getUsername() : "");
			} else if (c.getType() == 1) {
				// 医生姓名
				object.put("DOCTORNAME",
						c.getRealname() != null ? c.getRealname() : "");
				// 专长
				object.put("DOCTORSPECIALLY",
						c.getSpecial() != null ? c.getSpecial() : "");
				// 医生职称编码
				object.put(
						"DOCTORTITLE",
						c.getDoctorTitle() != null ? Integer.valueOf(c
								.getDoctorTitle()) : 0);
				// 科室编码
				object.put("DOCTOROFFICE", c.getOfficeCode1());
				object.put("DOCTORHOSPITAL",
						c.getHospital() != null ? c.getHospital() : "");
				object.put("ORDERONOFF", c.getOrderOnOff());
				// 地区编码
				object.put("AREA", c.getAreaCode());
			} else {
				// 相同经历
				object.put("BODY", c.getSameExperienceCode());
			}

		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		// if (c != null) {
		// c = null;
		// }
		// 网络请求
		RequestParams params = new RequestParams();
		params.put("PARAMETER", object.toString());
		mAsyncHttpClient.post(mHttpUrls.URL_SEARCH_FRIENDS, params, handler);
	}

	/**
	 * 更新广告点击次数
	 */
	public static void doHttpUpdateAdverCount(String adverid, String userid) {
		RequestParams params = new RequestParams();
		params.put("ADVERID", adverid);
		params.put("CUSTOMERID", userid);
		mAsyncHttpClient.post(mHttpUrls.URL_ADDADVCLICKREQ, null);
	}

	/**
	 * 
	 * @param url
	 *            请求json地址
	 * @param type
	 *            请求类型
	 * @param upperId
	 *            大类id
	 * @param infoId
	 *            小类id
	 * @param pagesize
	 *            第几页
	 * @param pageNum
	 *            每页图片数
	 * @param orderType
	 *            排序方式 排序类型如果是4，表示全部。1表示最新。2表示最热。3表示推荐
	 * @param handler
	 */
	public static void doHttpQueryInterestWall(String type, String upperId,
			String infoId, String pagesize, String pageNum, String orderType,
			String picid, String shopType, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("TYPE", type);
		requestParams.put("PARAMETER", upperId + "," + infoId + "," + pagesize
				+ "," + pageNum + "," + orderType + "," + picid);
		if (shopType != null && shopType.equals("Photography")) {
			requestParams.put("SHOPTYPE", shopType);
		}//0,0,1,1,4,0
		mAsyncHttpClient.get(mHttpUrls.ALL_INTERESTWALL, requestParams, handler);
	}

	/**
	 * 
	 * @param url
	 *            地址
	 * @param uperid
	 *            大类id
	 * @param infoid
	 *            小类id
	 * @param pagesize
	 *            第几页
	 * @param pagenum
	 *            每页的数据数量
	 * @param cusid
	 *            用户id
	 * @param type
	 *            1为我发布，2为我收藏
	 */
	public static void doHttpQueryInterestWallUserRelease(String uperid,
			String infoid, String pagesize, String pagenum, String cusid,
			String type, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER", uperid + "," + infoid + "," + pagesize
				+ "," + pagenum + "," + cusid + "," + type);
		mAsyncHttpClient.get(mHttpUrls.MY_INTERESTWALL, requestParams, handler);
	}

	/**
	 * 查询最近三条评论
	 * 
	 * @param url
	 * @param picid
	 *            图片id
	 * @param handler
	 */
	public static void doHttpQueryInterestImageCommend(String picid,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PICTUREID", picid);
		mAsyncHttpClient.get(mHttpUrls.INTERESTWALL_COMMEND, requestParams,
				handler);
	}

	public static void doHttpQueryInterestWallImage(String picid,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PID", picid);
		mAsyncHttpClient.get(mHttpUrls.INTERESTWALL_MESSAGE, requestParams,
				handler);
	}

	/**
	 * 转发成功
	 * @param picid
	 * @param customerid
	 * @param type
	 * @param handler
	 */
	public static void doHttpActionForImage(String picid, String customerid,
			String type, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PICTUREID", picid);
		requestParams.put("CUSTOMERID", customerid);
		requestParams.put("TYPE", type);
		mAsyncHttpClient.get(mHttpUrls.INTERESTWALL_COLLECTION, requestParams,
				handler);
	}
	
	public static void doHttpUploadHeader(File file,
			JsonHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		try {
			params.put("file", file);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		mAsyncHttpClient.post(mHttpUrls.URL_HEAD_IMAGE, params, handler);
	}

	/**
	 * 图片上传
	 * 
	 * @param userid
	 * @param file
	 * @param handler
	 */
	public static void doHttpUploadInterestWallImage(String userid,
			File smallFile, File largeFile, org.json.JSONObject jsonObject,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		try {
			params.put("file1", smallFile);
			params.put("file2", largeFile);
			params.put("json", jsonObject.toString());
			mAsyncHttpClient.post(mHttpUrls.INTERESTWALL_IMAGE_UPLOAD, params,
					handler);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			if (handler != null)
				handler.onFailure(null, null);
		}
	}

	/**
	 * 查询剩余关注我的人
	 * 
	 * @param id
	 *            客户ID
	 * @param number
	 *            前台已有数量
	 * @param what
	 */
	public static void doHttpRequestAttentionToMe(String id,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PARAMETER", id);
		requestParams.put("TYPE", "1");
		mAsyncHttpClient.post(mHttpUrls.URL_LOAD_INIT1, requestParams, handler);
	}

	/**
	 * 获取初始化图标数据
	 * 
	 * @param cusid
	 *            登陆用户id
	 */
	public static void doHttpRequestIconData(String cusid,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", cusid);
		mAsyncHttpClient.get(mHttpUrls.ICON_INIT, requestParams, handler);
	}

	/**
	 * 创建者信息
	 * 
	 * @param customerid
	 * @param createCustomerId
	 * @param handler
	 */
	public static void doHttpCreatorInfo(String customerid,
			String createCustomerId, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", customerid);
		requestParams.put("CREATECUSTOMERID", createCustomerId);
		mAsyncHttpClient.post(mHttpUrls.URL_CREATOR_INFO, requestParams,
				handler);
	}

	/**
	 * 增加或删除图标
	 * 
	 * @param cusid
	 * @param iconid
	 * @param handler
	 */
	public static void doHttpRequestIconAction(String type, String cusid,
			String iconid, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("TYPE", type);
		requestParams.put("CUSTOMERID", cusid);
		requestParams.put("FUNCTIONID", iconid);
		mAsyncHttpClient.get(mHttpUrls.ICON_ACTION, requestParams, handler);
	}

	/**
	 * 
	 * @param cusid
	 *            客户id
	 * @param shopType
	 *            标志位
	 * @param handler
	 */
	public static void doHttpRequestLoadGroup(String cusid, String shopType,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", cusid);
		requestParams.put("SHOPTYPE", shopType);
		mAsyncHttpClient.get(mHttpUrls.MYZONE_FUNCTION_LOADGROUP,
				requestParams, handler);
	}

	/**
	 * 加载图片信息
	 * 
	 */
	public static void doHttpRequestLoadImageData(String cusId, String classId,
			String type, String otherId, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", cusId);
		requestParams.put("CLASSID", classId);
		requestParams.put("TYPE", type);
		requestParams.put("OTHERCUSTOMERID", otherId);
		mAsyncHttpClient.get(mHttpUrls.MYZONE_FUNCTION_LOADIMAGE,
				requestParams, handler);
	}

	/**
	 * 各种馆图片上传
	 * 
	 * @param jsonObject
	 * @param smallFile
	 * @param largeFile
	 * @param handler
	 */
	public static void doHttpUploadShopImage(org.json.JSONObject jsonObject,
			File smallFile, File largeFile, ObjectHttpResponseHandler handler) {
		RequestParams params = new RequestParams();

		try {
			params.put("small", smallFile);
			params.put("large", largeFile);// URLEncoder.encode("large",
											// "utf-8")
			params.put("json", jsonObject.toString());// URLEncoder.encode("json",
														// "utf-8").URLEncoder.encode(jsonObject.toString(),
														// "utf-8")
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}

		BasicHeader[] headers = new BasicHeader[3];
		headers[0] = new BasicHeader("parame1", "");
		headers[1] = new BasicHeader("parame2", "");
		headers[2] = new BasicHeader("parame3", "multipart/form-data");
		mAsyncHttpClient.post(null, mHttpUrls.MYZONE_FUNCTION_UPLOADIMAGE,
				headers, params, null, handler);
	}

	public static void doHttpRequestEditGroup(String type, String classid,
			String className, String shopType, String cusid,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("TYPE", type);
		switch (Integer.parseInt(type)) {
		case 3:// 删除
			requestParams.put("CLASSID", classid);
			break;
		case 1:// 增加
			requestParams.put("CUSTOMERID", cusid);
			requestParams.put("CLASSNAME", className);
			requestParams.put("SHOPTYPE", shopType);
			break;
		case 2:// 修改
			requestParams.put("json", classid);
			break;
		}
		mAsyncHttpClient.get(mHttpUrls.GROUP_ACTION, requestParams, handler);
	}

	/**
	 * 获取兴趣墙用户发布信息
	 * 
	 * @param cusid
	 * @param handler
	 */
	public static void doHttpRequestUserReleaseCount(String cusid,
			ObjectHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", cusid);
		mAsyncHttpClient.get(mHttpUrls.USER_RELEASE_COUNT, requestParams,
				handler);
	}

	/**
	 * 获取新闻详细内容
	 * 
	 * @param type
	 *            默认5
	 * @param newsId
	 * @param userId
	 * @param replyID
	 * @param content
	 * @param responseHandler
	 */
	public static void doHttpNewsComment(String newsId, String userId,
			String replyID, String content,
			AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "5");
		params.put("NEWSID", newsId);
		params.put("CUSTID", userId);
		if (replyID != null)
			params.put("UPPER_REPLY_ID", replyID);
		params.put("CONTENT", content);
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler);
	}

	/**
	 * 查询新闻列表
	 * @param typeId
	 *            类型
	 * @param newsId
	 *            新闻id
	 * @param size
	 *            大小
	 * @param freshType
	 *            刷新类型
	 * @param handler
	 * =2&PAGESIZE=25
2014
	 */
	public static void doHttpQueryNewsList(String infotypecode,String pagenum,String pagesize,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "1");
		params.put("INFOTYPECODE", infotypecode);
		params.put("PAGENUM", pagenum);
		params.put("PAGESIZE", pagesize);
		mAsyncHttpClient.get(mHttpUrls.NewsServlet, params, handler);
//		TYPE=1&=1&=2&PAGESIZE=25
/*		RequestParams params = new RequestParams();
		params.put("TYPE", "1");
		params.put("REFRESHTYPE", freshType);// -1下拉刷新,1上拉刷新
		params.put("PAGESIZE", size);// 数量
		params.put("INFOTYPECODE", typeId);// 类型
		params.put("NEWSID", newsId);// 新闻id
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, handler);*/
	}

	/**
	 * 分享统计
	 * 
	 * @param id
	 *            用户id
	 * @param handler
	 */
	public static void doHttpNewsShareCount(String userId, String newsId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "9");
		params.put("CUSTID", userId);
		params.put("NEWSID", newsId);
		doHttpNews(params, handler);
	}

	/**
	 * 
	 * 新闻收藏统计
	 * @param handler
	 */
	public static void doHttpNewsCollectionCount(String userId, String newsId,
			boolean isCollection, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "7");
		params.put("CUSTID", userId);
		params.put("INFOTYPECODE", newsId);
		params.put("COLLECTIONTYPE", isCollection ? "1" : "-1");
		doHttpNews(params, handler);
	}

	/**
	 * 新闻请求
	 * 
	 * @param params
	 * @param handler
	 */
	public static void doHttpNews(RequestParams params,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, handler);
	}

	/**
	 * 查询新闻分类
	 */
	public static void doHttpQueryNewsTypes(String cusId,
			AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "2");
		params.put("CUSTID", cusId);
		mAsyncHttpClient.get(mHttpUrls.NewsServlet, params, responseHandler);
	}

	/**
	 * 查询新闻内容
	 * 
	 * @param newsid
	 * @param responseHandler
	 */
	public static void doHttpQueryNewsContent(String newsid,
			AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "1");
		params.put("INFOTYPECODE", newsid);
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler);
	}

	/**
	 * 
	 * 新闻分类
	 * 
	 * @param custid
	 * @param newsid
	 * @param responseHandler
	 */
	public static void doHttpQueryNewsContentDetail(String custid,
			String newsid, String newsType,
			AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "15");
		params.put("CUSTID", custid);
		params.put("NEWSID", newsid);
		params.put("NEWSTYPE", newsType);
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler);
	}

	/**
	 * 查询新闻评论
	 */
	public static void doHttpQueryNewsComment(String newsid,
			String commentnewsid, String size, String loadtype,
			AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "4");
		params.put("NEWSID", newsid);
		params.put("COMMENTNEWSID", commentnewsid);
		params.put("SIZE", size);
		params.put("LOADTYPE", loadtype);
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler);
	}

	/**
	 * 收藏
	 * 
	 * @param userId
	 * @param newsId
	 * @param responseHandler
	 */
	public static void doHttpNewsCollectionAdd(String userId, String newsId,
			AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "7");
		params.put("NEWSID", newsId);
		params.put("CUSTID", userId);
		params.put("COLLECTIONTYPE", "1");
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler);
	}

	/**
	 * 移除收藏
	 * 
	 * @param userId
	 * @param newsId
	 * @param responseHandler
	 */
	public static void doHttpNewsCollectionRemove(String userId, String newsId,
			String deleteType, AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "14");
		params.put("NEWSID", newsId);
		params.put("CUSTID", userId);
		params.put("NEWSTYPE", deleteType);
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler);
	}

	/**
	 * 移除收藏
	 * 
	 * @param userId
	 * @param newsId
	 * @param responseHandler
	 */
	/*
	 * public static void doHttpNewsCollectionRemove(String userId, String
	 * newsId, AsyncHttpResponseHandler responseHandler) { RequestParams params
	 * = new RequestParams(); params.put("TYPE", "14"); params.put("NEWSID",
	 * newsId); params.put("CUSTID", userId);
	 * mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler); }
	 */

	/**
	 * 新闻收藏列表
	 */
	public static void doHttpQueryNewsCollection(String userId,
			AsyncHttpResponseHandler responseHandler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "13");
		params.put("CUSTID", userId);
		mAsyncHttpClient.get(mHttpUrls.URL_NEWS, params, responseHandler);
	}

	/**
	 * 获取已加入壹健康到的新浪微博好友
	 * 
	 * @param customerId
	 * @param access_token
	 * @param uid
	 * @param pageSize
	 * @param pageNum
	 * @param handler
	 */
	public static void doHttpSinaFromFriends(String customerId,
			String access_token, String uid, String pageSize, String pageNum,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("access_token", access_token);
		requestParams.put("uid", uid);
		requestParams.put("customerId", customerId);
		requestParams.put("pageSize", pageSize);
		requestParams.put("pageNum", pageNum);
		mAsyncHttpClient.get(mHttpUrls.URL_SINA_FRIEND, requestParams, handler);
	}

	/**
	 * 解除微博绑定
	 * 
	 * @param loginUserId
	 * @param microBlogUID
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpUnBindSina(String customerId, String microBlogUID,
			AsyncHttpResponseHandler asyncHttpResponseHandler) {
		RequestParams mParams = new RequestParams();
		mParams.put("uid", microBlogUID);
		mParams.put("customerId", customerId);
		mAsyncHttpClient.get(mHttpUrls.URL_SINA_UNBIND, mParams,
				asyncHttpResponseHandler);

	}

	/**
	 * 绑定新浪微博后发送给服务器成功
	 * 
	 * @param uid
	 *            新浪uid
	 * @param userId
	 * @param asyncHttpResponseHandler
	 * @param access_token
	 * @param microBlogCode
	 *            用户昵称
	 */
	public static void doHttpBundSina(String name, String access_token,
			String uid, String userId,long time, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("access_token", access_token);
		requestParams.put("uid", uid);
		requestParams.put("microBlogCode", name);
		requestParams.put("customerId", userId);
		requestParams.put("timeOut", String.valueOf(time));
		mAsyncHttpClient.get(mHttpUrls.URL_SINA_BIND, requestParams, handler);
	}

	/**
	 * 查找话题成员
	 * @param groupId
	 * @param customerdId
	 * @param pageSize
	 * @param pageNum
	 * @param type
	 *            0全部 1 日票 2 月票 3其他(关注的人)
	 * @param handler
	 */
	public static void doHttpSalonMembers(String groupId, String customerdId,
			String pageSize, String pageNum, String type,
			AsyncHttpResponseHandler handler) {
		RequestParams mParams = new RequestParams();
		mParams.put("CUSTOMERID", customerdId);
		mParams.put("GROUPID", groupId);
		mParams.put("PAGESIZE", pageSize);
		mParams.put("PAGENUM", pageNum);
		mParams.put("TYPE", type);
		mAsyncHttpClient.get(mHttpUrls.URL_SALON_MEMBER, mParams, handler);
	}

	/**
	 * 医书查询症状
	 * 
	 * @param position
	 *            部位id
	 * @param situation
	 *            症状id
	 */
	public static void doHttpQuerySituations(String position, String situation,String nameKeys,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (position != null)
			params.put("positionCode", position);
		if (situation != null)
			params.put("situationCode", situation);
		if(nameKeys != null)params.put("nameKeys", nameKeys);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYSITUATIONSSERVLET, params,
				handler);
	}

	/**
	 * 照片删除
	 * 
	 * @param isFromPhoto
	 * @param picid
	 * @param handler
	 */
	public static void doHttpDeleteInterestImage(String id, String picid,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("PICTUREID", picid);
		requestParams.put("CUSTOMERID", id);
		mAsyncHttpClient.get(mHttpUrls.DELETE_IMAGE_INTEREST, requestParams,
				handler);
		/*
		 * if(isFromPhoto){//摄影馆 requestParams.put("PICID",picid);
		 * mAsyncHttpClient.get(mHttpUrls.URL_DELETEDATEININTERES,requestParams,
		 * handler); }else{ requestParams.put("PICTUREID",picid);
		 * mAsyncHttpClient.get(mHttpUrls.DELETE_IMAGE_INTEREST,requestParams,
		 * handler); }
		 */
	}

	/**
	 * 
	 * 疾病查询
	 * 
	 * @param option
	 * @param positionCode
	 * @param diseaseCode
	 */
	public static void doHttpQueryDiseasesServlet(String option,
			String positionCode, String diseaseCode, String diseaseSystemName,
			String officeCode, String nameKeys,AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		if (option != null)
			requestParams.put("option", option);
		if (positionCode != null)
			requestParams.put("positionCode", positionCode);
		if (diseaseCode != null)
			requestParams.put("diseaseCode", diseaseCode);
		if (diseaseSystemName != null)
			requestParams.put("diseaseSystemName", diseaseSystemName);
		if (officeCode != null)
			requestParams.put("officeCode", officeCode);
		if(nameKeys != null)requestParams.put("nameKeys", nameKeys);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYDISEASESSERVLET, requestParams,
				handler);
	}

	/**
	 * 医院查询
	 * 
	 * @param option
	 * @param level
	 * @param areaCode
	 * @param unitType
	 * @param unitLevel
	 * @param handler
	 */
	public static void doHttpQueryUnitsServlet(String option, String level,
			String areaCode, String unitType, String unitLevel,
			String unitCode, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (option != null)
			params.put("option", option);
		if (level != null)
			params.put("level", level);
		if (areaCode != null)
			params.put("areaCode", areaCode);
		if (unitLevel != null)
			params.put("areaCode", unitLevel);
		if (unitType != null)
			params.put("unitType", unitType);
		if (unitCode != null)
			params.put("unitCode", unitCode);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYUNITSSERVLET, params, handler);
	}

	/**
	 * 药品查询
	 * 
	 * @param option
	 * @param generalCode
	 * @param medicineCode
	 * @param diseaseCode
	 * @param scopesID
	 * @param handler
	 */
	public static void doHttpQueryMedicinesServlet(String option,
			String generalCode, String medicineCode, String diseaseCode,
			String scopesID, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (option != null)
			params.put("option", option);
		if (generalCode != null)
			params.put("generalCode", generalCode);
		if (medicineCode != null)
			params.put("medicineCode", medicineCode);
		if (diseaseCode != null)
			params.put("diseaseCode", diseaseCode);
		if (scopesID != null)
			params.put("scopesID", scopesID);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYMEDICINESSERVLET, params,
				handler);
	}

	/**
	 * 检查类型
	 * 
	 * @param type
	 * @param handler
	 */
	public static void doHttpQueryInspectionsServlet(String type,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (type != null)
			params.put("code", type);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYINSPECTIONSSERVLET, params,
				handler);
	}

	/**
	 * 手术查询
	 * 
	 * @param option
	 * @param diseaseCode
	 * @param treatmentCode
	 * @param positionCode
	 */
	public static void doHttpQueryTreatmentsServlet(String option,
			String diseaseCode, String treatmentCode, String positionCode,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (option != null)
			params.put("option", option);
		if (positionCode != null)
			params.put("positionCode", positionCode);
		if (diseaseCode != null)
			params.put("diseaseCode", diseaseCode);
		if (treatmentCode != null)
			params.put("treatmentCode", treatmentCode);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYTREATMENTSSERVLET, params,
				handler);
	}

	/**
	 * 科室查询
	 * 
	 * @param officeCode
	 * @param handler
	 */
	public static void doHttpQueryOfficesServlet(String officeCode,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (officeCode != null)
			params.put("officeCode", officeCode);
		mAsyncHttpClient
				.get(mHttpUrls.URL_QUERYOFFICESSERVLET, params, handler);
	}
	
	
	public static void doHttpURL_QUERYOFFICESSERVLET(RequestParams params,
			AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYOFFICESSERVLET, params, handler);
	}

	/**
	 * 看病
	 * 
	 * @param option
	 * @param latitude
	 * @param longitude
	 * @param longer
	 * @param subOption
	 * @param sysCode
	 * @param level
	 * @param handler
	 */
	public static void doHttpSeeDoctorServlet(String option, String latitude,
			String longitude, String longer, String subOption, String sysCode,
			String level, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (option != null)
			params.put("option", option);
		if (latitude != null)
			params.put("latitude", latitude);
		if (longitude != null)
			params.put("longitude", longitude);
		if (longer != null)
			params.put("longer", longer);
		if (subOption != null)
			params.put("subOption", subOption);
		if (sysCode != null)
			params.put("sysCode", sysCode);
		if (level != null)
			params.put("level", level);
		mAsyncHttpClient.get(mHttpUrls.URL_SEEDOCTORSERVLET, params, handler);
	}

	/**
	 * 修改个人资料
	 * 
	 * @param json
	 *            表示所有的个人资料提交拼写
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpUpdateCustomInfo(RequestParams json,
			AsyncHttpResponseHandler asyncHttpResponseHandler) {
		mAsyncHttpClient.post(mHttpUrls.URL_UPDATE_CUSTOMINFO, json,
				asyncHttpResponseHandler);
	}

	/**
	 * 查询门票购买记录接口
	 * 
	 * @param groupId
	 * @param customerId
	 * @param handler
	 */
	public static void doHttpBuyTicketsRecords(String groupId,
			String customerId, AsyncHttpResponseHandler handler) {
		// 查询门票购买记录接口 FindBuyTicketReq String groupId =
		// request.getParameter("GROUPID");
		// String customerId = request.getParameter("CUSTOMERID");
		RequestParams params = new RequestParams();
		params.put("GROUPID", groupId);
		params.put("CUSTOMERID", customerId);
		mAsyncHttpClient.post(mHttpUrls.URL_BUYTICKETSRECORDS, params, handler);
	}

	/**
	 * 进入话题设置时候的接口
	 * 
	 * @param groupId
	 * @param groupLevelId
	 * @param handler
	 */
	public static void doHttpTicketsSettting(String groupId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("GROUPID", groupId);
		mAsyncHttpClient.post(mHttpUrls.URL_FINDTICKETMSG, params, handler);
	}

	/**
	 * 初始化加载我的话题和我的社交
	 * 
	 * @param cusId
	 */
	public static void doHttpLoginAboutMe(String cusId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusId);
		mAsyncHttpClient.post(mHttpUrls.URL_LOGINABOUTME, params, handler);
	}

	/**
	 * 上传门票
	 * 
	 * @param json
	 * @param handler
	 */
	public static void doHttpUploadTicketSetting(String json,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("PRAMETER", json);
		mAsyncHttpClient.post(mHttpUrls.URL_UPLOADTICKETSETTING, params,
				handler);
	}

	/**
	 * 查询文件管理
	 * 
	 * @param customerId
	 * @param type
	 *            1 文件 2 图片 3 音频 4视频
	 * @param pageSize
	 * @param pageNum
	 */
	public static void doHttpFindGroupFile(String customerId, String groupid,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", customerId);
		params.put("GROUPID", groupid);
		mAsyncHttpClient.post(mHttpUrls.URL_FINDGROUPFILE, params, handler);
	}

	/**
	 * 删除文件
	 */
	public static void doHttpDeleteFile(String fileId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("FILEID", fileId);
		mAsyncHttpClient.post(mHttpUrls.URL_DELETEFILE, params, handler);
	}

	// String customerId = request.getParameter("CUSTOMERID");
	// String beginTime = request.getParameter("BEGINTIME");
	// String endTime = request.getParameter("ENDTIME");
	// String type = request.getParameter("TYPE");
	// String pageSize = request.getParameter("PAGESIZE");
	// String pageNum = request.getParameter("PAGENUM");
	/*
	 * 收入统计
	 */
	public static void doHttpFindIncome(String groupId, String customerId,
			String beginTime, String endTime, String type, String pageFlag,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", customerId);
		params.put("BEGINTIME", beginTime);
		params.put("ENDTIME", endTime);
		params.put("TYPE", type);
		// params.put("PAGESIZE", pageSize);
		// params.put("PAGENUM", pageNum);
		// params.put("FLAG", pageFlag);
		// params.put("GROUPID", groupId);
		mAsyncHttpClient.post(mHttpUrls.URL_FINDINCOME, params, handler);
	}

	/**
	 * 修改兴趣墙的话题资料
	 * 
	 * @param picid
	 * @param groupName
	 * @param groupDesc
	 * @param infolayId
	 * @param upperLayid
	 * @param cusId
	 * @param publicCusinfo
	 * @param releaseSystemMsg
	 * @param handler
	 */
	public static void doHttpUpdateInterestGroup(String picid,
			String groupName, String groupDesc, String infolayId,
			String upperLayid, String cusId, String publicCusinfo,
			String releaseSystemMsg, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("pictureId", picid);
		requestParams.put("recordName", groupName);
		requestParams.put("record_desc", groupDesc);
		requestParams.put("infoLayId", infolayId);
		requestParams.put("upperLayID", upperLayid);
		requestParams.put("custId", cusId);
		requestParams.put("publicCustInfo", publicCusinfo);
		requestParams.put("releaseSystemMessage", releaseSystemMsg);
		mAsyncHttpClient.post(null, mHttpUrls.INTERESTWALL_GROUP, requestParams,
				handler);
	}

	/**
	 * 取消收藏
	 * 
	 * @param cusid
	 * @param picid
	 * @param handler
	 */
	public static void doHttpCancelCollect(String cusid, String picid,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("PICTUREID", picid);
		mAsyncHttpClient.post(mHttpUrls.CANCEL_COLLECTION, params, handler);
	}

	public static void doHttpQueryUserData(String cusid, String shopId,
			String classId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("SHOPID", shopId);
		params.put("CLASSID", classId);
		mAsyncHttpClient.post(mHttpUrls.QUERY_USER_DATA, params, handler);
	}

	public static void doHttpCancelCallback(String url,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.delete(url, handler);
	}

	/**
	 * 查看话题收入详细信息精确到天
	 * 
	 * @param customerId
	 * @param time
	 * @param handler
	 */
	public static void doHttpFindInComeDetailData(String customerId,
			String time, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", customerId);
		params.put("DATE", time);
		mAsyncHttpClient.post(mHttpUrls.URL_FINDINCOMEDETAIL, params, handler);
	}

	public static void doHttpdeleteShopImage(String picid, String cusid,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("PICID", picid);
		params.put("CUSTOMERID", cusid);
		params.put("SHOPTYPE", "Photography");
		mAsyncHttpClient.post(mHttpUrls.PHOTO_DELETE_IMAGE, params, handler);
	}

	/**
	 * 编辑图片信息
	 * 
	 * @param entitiy
	 * @param cusid
	 * @param handler
	 */
	public static void doHttpUpdateShopImageData(ShopImageEntitiy entitiy,
			String cusid, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("PICTUREID", entitiy.getPicId());
		params.put("CUSTOMERID", cusid);
		params.put("SHOPID", entitiy.getShopId());
		params.put("FILESIZE", entitiy.getPicSize() + "");
		params.put("CLASSID", entitiy.getClassId());
		params.put("ADDINTERESTS", entitiy.getAddInterest());
		params.put("PICTURETITLE", entitiy.getPicTitle());
		params.put("PICTUREDESC", entitiy.getPicDesc());
		params.put("ICONADDR", entitiy.getIconImageAddress());
		params.put("PICADDR", entitiy.getImageAddress());
		params.put("SHOPTYPE", "Photography");
		params.put("ICONWPX", entitiy.getIconWidth() + "");
		params.put("ICONHPX", entitiy.getIconHeight() + "");
		params.put("PICWPX", entitiy.getPicWidth() + "");
		params.put("PICHPX", entitiy.getPicHeight() + "");
		params.put("INFOLAYID", entitiy.getInfoLayId() + "");
		mAsyncHttpClient.post(mHttpUrls.PHOTO_UPDATE_IMAGE, params, handler);
	}

	/**
	 * 创建新话题
	 * 
	 * @param json
	 * @param path
	 */
	public static void doHttpNewSalon(Context context, String json,
			File file, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		try {
			if (file != null && file.exists()) {
				params.put("file1", file);
			}else{
				params.putNullFile("file1", new File(""));
			}
			org.json.JSONObject jsonObject = new org.json.JSONObject(json);
			Iterator<String> itr = jsonObject.keys();
			while (itr.hasNext()) {
				String str = itr.next();
				params.put(str, jsonObject.getString(str));
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		mAsyncHttpClient.post(mHttpUrls.URL_CREATE_SALON, params, handler);
	}
	
	//更新话题
	public static void doHttpNewSalon(Context context, String json,
			String path, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		try {
			if (path != null && !path.equals("")) {
				params.put("file1", new File(path));
			}else{
				params.putNullFile("file1", new File(""));
			}
			org.json.JSONObject jsonObject = new org.json.JSONObject(json);
			Iterator<String> itr = jsonObject.keys();
			while (itr.hasNext()) {
				String str = itr.next();
				params.put(str, jsonObject.getString(str));
			}
		} catch (Exception e) {
		}
		mAsyncHttpClient.post(mHttpUrls.URL_CREATE_SALON, params, handler);
		}

	/**
	 * 虚拟医生
	 * 
	 * @param handler
	 */
	public static void doHttpVirtualDoctor(org.json.JSONObject jsonObject,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("server_parame", jsonObject.toString());
		mAsyncHttpClient.get(mHttpUrls.URL_MMS_SERVLET300, params, handler);
	}

	public static void doHttpSetLink(String shopid, String shopLink,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("SHOPID", shopid);
		params.put("SHOPLINK", shopLink);
		mAsyncHttpClient.get(mHttpUrls.SHOP_LINK_SET, params, handler);
	}

	public static void doHttpSetAuthority(String type, String classId,
			String shopid, String cusids, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", type);
		params.put("CLASSID", classId);
		params.put("SHOPID", shopid);
		if (type.equals("3")) {
			params.put("CUSTOMERIDS", cusids);
		}
		mAsyncHttpClient.get(mHttpUrls.PHOTO_OPEN_LEVEL, params, handler);
	}

	/**
	 * 收藏与取消收藏
	 * 
	 * @param type
	 * @param cusid
	 * @param picId
	 * @param handler
	 */
	public static void doHttpCollectImage(String type, String cusid,
			String picId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("PICID", picId);
		params.put("TYPE", type);
		mAsyncHttpClient.get(mHttpUrls.SHOP_COLLECT_IMAGE, params, handler);
	}

	public static void doHttpQueryTransmitGroupsData(String cusid,
			String pageSize, String pageNum, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("PAGESIZE", pageSize);
		params.put("PAGENUM", pageNum);
		mAsyncHttpClient.get(mHttpUrls.INTEREST_TRANSMIT_GROUPS, params,
				handler);
	}

	public static void doHttpQueryTransmitCustomersData(String cusid,
			String pageSize, String pageNum, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("PAGESIZE", pageSize);
		params.put("PAGENUM", pageNum);
		mAsyncHttpClient.get(mHttpUrls.INTEREST_TRANSMIT_CUSTOMERS, params,
				handler);
	}

	/**
	 * 
	 * 人体图症状内容查询
	 * 
	 * @param what
	 * @param codeId
	 *            症状编码id
	 */
	public static void doHttpQuerySymptomContent(String codeId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "2");
		params.put("SITUATIONCODES", codeId);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYSITUATION, params, handler);
	}

	/**
	 * 虚拟人体查询
	 * 
	 * @param verion
	 */
	public static void doHttpQuerySymptom(String verion,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("TYPE", "1");
		requestParams.put("VERSION", verion);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYSITUATION, requestParams,
				handler);
	}

	/**
	 * 获取多美币
	 * 
	 * @param type
	 * @param id
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpGetMoney(String type, String id,
			AsyncHttpResponseHandler asyncHttpResponseHandler) {
		RequestParams params = new RequestParams();
		params.put("Type", type);
		params.put("CUSTOMERID", id);
		mAsyncHttpClient.post(mHttpUrls.URL_GETMONRY, params,
				asyncHttpResponseHandler);
	}

	/**
	 * 刚进入充值主界面的时候初始化请求数据用的
	 * 
	 * @param id
	 * @param string
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpRecharInitialize(String id, String string,
			AsyncHttpResponseHandler asyncHttpResponseHandler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("Type", string);
		requestParams.put("CUSTOMERID", id);
		mAsyncHttpClient.get(mHttpUrls.URL_GETMONRY,
				requestParams, asyncHttpResponseHandler);
	}

	/**
	 * 购买多美币,返回订单号
	 * 
	 * @param id
	 * @param mMoneyNumber
	 *            多美币的数量
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpRecharPay(String id, String mMoneyNumber,
			AsyncHttpResponseHandler asyncHttpResponseHandler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("customerid", id);
		requestParams.put("CURRENCY", mMoneyNumber);
		mAsyncHttpClient.get(mHttpUrls.URL_BUY_MONEY, requestParams,
				asyncHttpResponseHandler);
	}

	public static void doHttpDeleteImageUploadCallBack(
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.delete(mHttpUrls.INTERESTWALL_IMAGE_UPLOAD, handler);
	}

	public static void doHttpDeleteShopImageUploadCallBack(
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.delete(mHttpUrls.MYZONE_FUNCTION_UPLOADIMAGE, handler);
	}

	/**
	 * 购买多美币成功后回调
	 * 
	 * @param loginUserId
	 *            id
	 * @param orderNumber
	 *            订单号
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpGetMoneyResponse(String loginUserId,
			String orderNumber,
			AsyncHttpResponseHandler asyncHttpResponseHandler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("customerid", loginUserId);
		requestParams.put("orderid", orderNumber);
		mAsyncHttpClient.get(mHttpUrls.URL_BUY_MONEY_RETURN, requestParams,
				asyncHttpResponseHandler);
	}

	public static void doHttpDeleteInterestUserReleaseCallBack(
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.delete(mHttpUrls.MY_INTERESTWALL, handler);
	}

	public static void doHttpDeleteInterestImageLoadCallBack(
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.delete(mHttpUrls.ALL_INTERESTWALL, handler);
	}

	/**
	 * 获取消费记录
	 * 
	 * @param id
	 * @param date
	 *            日期
	 * @param type
	 *            第几页
	 * @param size
	 *            长度
	 * 
	 */
	public static void doHttpQueryTransactionRecord(String cusId, String date,
			String pageNum, String pageSize, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		if (date == null) {
			date = "";
		}
		requestParams.put("TIME", date);
		requestParams.put("CUSTOMERID", cusId);
		requestParams.put("PAGESIZE", pageSize);
		requestParams.put("PAGENUM", pageNum);
		mAsyncHttpClient.get(mHttpUrls.URL_GET_RECORD_XIAOFEI, requestParams,
				handler);
	}

	/**
	 * 获取充值历史 Date=日期，如201304
	 * 
	 * @param handler
	 */
	public static void doHttpQueryChongZhiHostory(String id, String Orderid,
			String date, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", id);
		requestParams.put("Orderid", Orderid);
		requestParams.put("Date", date);
		requestParams.put("Type", "queryCustomerGoldOrderlikeDate");
		mAsyncHttpClient.get(mHttpUrls.URL_GET_CHONGZHI_HOSTORY, requestParams,
				handler);
	}

	public static void doHttpBuyandSeller(String id, String type,
			AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", id);
		requestParams.put("TYPE", type);
		requestParams.put("VERSION", "4");//VERSION=4
		mAsyncHttpClient.get(mHttpUrls.BUYORSELL302, requestParams, handler);
	}

	/**
	 * 根据指定类型获取我买我卖数据
	 */
	public static void doHttpBuyAndSellQueryData(String type,
			String loginUserId, String fileType, String date, String pagNum,
			String pageCount,String SERVICETYPE, AsyncHttpResponseHandler handler) {
		RequestParams requestParams = new RequestParams();
		requestParams.put("CUSTOMERID", loginUserId);
		requestParams.put("TYPE", type);
		requestParams.put("FILETYPE", fileType);
		requestParams.put("TIME", date);
		requestParams.put("PAGENUM", pagNum);
		requestParams.put("PAGECOUNT", pageCount);//SERVICETYPE
		requestParams.put("SERVICETYPE", SERVICETYPE);
		mAsyncHttpClient.get(mHttpUrls.BUYORSELLINFO302,requestParams, handler);
	}

	/**
	 * 
	 * 发送语音文件
	 * 
	 * @param entity
	 * @param isGroupChat
	 * @param handler
	 */
	public static void doHttpSendChatVoiceMesg(MessageEntity entity,
			boolean isGroupChat, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (isGroupChat) {
			params.put("server_code", "9045");
		} else {
			params.put("server_code", "9018");
		}
		params.put("serverId", entity.getId());
		params.put("customerId", entity.getSenderId());
		params.put("isGroupMessage", isGroupChat ? "1" : "0");
		params.put("timeStamp", String.valueOf(System.currentTimeMillis()));
		params.put("sms_target_id", entity.getReceiverId());
		params.put("type", String.valueOf(entity.getType()));
		params.put("duration", entity.getVoiceLength());
		try {
			;
			File file = new File(StorageUtils.getVoicePath(),
					entity.getContent());
			params.put("FILE", file);
			mAsyncHttpClient
					.post(mHttpUrls.URL_SENDPICSERVLET, params, handler);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			handler.onFailure(null, null);
		}
	}

	/**
	 * 聊天发送图片
	 * 
	 * @param entity
	 * @param handler
	 */
	public static void doHttpSendChatImageMesg(MessageEntity entity,
			boolean isGroupChat, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (isGroupChat) {
			params.put("server_code", "9045");
		} else {
			params.put("server_code", "9018");
		}
		params.put("serverId", entity.getId());
		params.put("customerId", entity.getSenderId());
		params.put("isGroupMessage", isGroupChat ? "1" : "0");
		params.put("timeStamp", String.valueOf(System.currentTimeMillis()));
		params.put("sms_target_id", entity.getReceiverId());
		params.put("type", String.valueOf(entity.getType()));
		params.put("duration", entity.getVoiceLength());
		try {
			String[] files = entity.getContent().split("&");
			ImageLoader loader = ImageLoader.getInstance();
			String rootPath = StorageUtils.getImagePath();
			File bigFile2 = loader.getOnDiscFileName(new File(rootPath),files[1]);
			File miniFile2 = loader.getOnDiscFileName(new File(rootPath),files[0]);
			String path = StorageUtils.getImagePath();
			params.put("icon", miniFile2);
			params.put("image",bigFile2);
			mAsyncHttpClient
					.post(mHttpUrls.URL_SENDPICSERVLET, params, handler);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			handler.onFailure(null, null);
		}

	}

	/**
	 * 服务中心查询新闻or活动,主页信息
	 * 
	 * @param merchantid
	 * @param type
	 *            1,活动 ;2,新闻 ,null走进我们查询
	 * @param handler
	 * @param pushState
	 *            =Published已发布，isRelease未发布，Revocation已撤销
	 */
	public static void doHttpQueryServerCenterNewsOrActivite(String merchantid,
			String type, String pushState, AsyncHttpResponseHandler handler,
			String pageNum, String pageSize) {
		RequestParams params = new RequestParams();
		params.put("merchantid", merchantid);// 商户id
		if ("1".equals(type)) {// 类型
			params.put("newstype", "Campaign");// 活动
		} else if ("2".equals(type)) {
			params.put("newstype", "News");// 新闻
		}
		if (pushState != null) {
			if ("1".equals(pushState)) {
				params.put("state", "Published");
			} else if ("2".equals(pushState)) {
				params.put("state", "isRelease");
			} else if ("3".equals(pushState)) {
				params.put("state", "Revocation");
			}
		}
		if ("1" == type || "2" == type) {
			params.put("yema", pageNum);
			params.put("count", pageSize);
		}
		mAsyncHttpClient.get(mHttpUrls.URL_CENTERMERCHANTNEWSSERVLET, params,handler);
	}

	/**
	 * 商户介绍
	 * 
	 * @param merchantid
	 * @param handler
	 */
	public static void doHttpQueryServerCenterIntroduce(String merchantid,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("merchantid", merchantid);// 商户id
		mAsyncHttpClient.get(mHttpUrls.URL_CENTERMERCHANTDEFINESERVLET, params,handler);
	}

	/**
	 * 提交意见
	 * 
	 * @param customerId
	 * @param merchantId
	 * @param content
	 * @param time
	 */
	public static void doHttpServerCenterReport(String customerId,
			String merchantId, String content, String time,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", customerId);// 客户id
		params.put("MERCHANT_ID", merchantId);// 商户id
		params.put("COMPLAIN_CONTENT", content);
		params.put("COMPLAIN_TIME", time);
		params.put("Type", "saveCenterMerchantComplain");
		mAsyncHttpClient.get(mHttpUrls.URL_CENTERMERCHANTCOMPLAINSERVLET,params, handler);
	}

	/**
	 * 根据经纬度查询位置
	 * @param latitude
	 * @param longitude
	 */
	public static void doHttpQueryMapAddress(String latitude, String longitude,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("latlng", longitude + "," + latitude);
		params.put("sensor", "true");
		params.put("language", "zh-CN");
		mAsyncHttpClient.get(mHttpUrls.GOOLE_MAP_GECODE, params, handler);
	}

	/**
	 * 语音文件下载
	 * 
	 * @param path
	 * @param handler
	 */
	public static void doHttpDownChatFile(String path,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYHEADIMAGE + path, handler);
	}

	/**
	 * 按昵称和多美号查找好友
	 * 
	 * @param userid
	 * @param pagenum
	 * @param pagesize
	 * @param duomeiNum
	 * @param type
	 *            如果TYPE=1 只搜索出医生， 如果TYPE=0 只搜索出客户
	 * @param handler
	 */
	public static void doHttpFriendExactSearch(String userid, String pagenum,
			String pagesize, String duomeiNum, int type,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", userid);
		params.put("ACCOUNTS", duomeiNum);
		params.put("PAGENUM", pagenum);
		params.put("PAGESIZE", pagesize);
		params.put("TYPE",String.valueOf(type));
		mAsyncHttpClient.get(mHttpUrls.URL_FRIENDEXACTSEARCH, params, handler);
	}

	/**
	 * 我的粉丝
	 * 
	 * @param userid
	 * @param pagenum
	 * @param pagesize
	 * @param handler
	 */
	public static void doHttpFindMyFriends(String userid, String pagenum,
			String pagesize, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", userid);
		params.put("PAGENUM", pagenum);
		params.put("PAGESIZE", pagesize);
		mAsyncHttpClient.get(mHttpUrls.URL_FINDMYFRIENDS, params, handler);
	}

	/**
	 * 我的粉丝
	 * 
	 * @param userid
	 * @param pagenum
	 * @param pagesize
	 * @param handler
	 */
	public static void doHttpFindMyBlacks(String userid, String pagenum,
			String pagesize, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", userid);
		params.put("PAGENUM", pagenum);
		params.put("PAGESIZE", pagesize);
		mAsyncHttpClient.get(mHttpUrls.URL_FINDMYBLACKS, params, handler);
	}

	/**
	 * 根据指定id看别人资料信息
	 * 
	 * @param userid
	 * @param handler
	 */
	public static void doHttpLookYouInfoMessage(String userid,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerId", userid);
		params.put("parame", userid);
		mAsyncHttpClient.get(mHttpUrls.URL_YOU_INFO_MESSAGE, params, handler);
	}

	/**
	 * 加载聊天历史消息(话题)
	 * 
	 * @param chatId
	 * @param serverid
	 * @param pagenum
	 * @param handler
	 */
	public static void doHttpQueryChatMesg(String chatId, String serverid,
			String pagenum, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "queryLixianLISHIJILU");
		params.put("groupid", chatId);
		params.put("serverid", serverid);
		params.put("pagenum", pagenum);
		mAsyncHttpClient.get(mHttpUrls.URL_QUERY_HISTORY_MESSAGE, params,
				handler);
	}
	
	
	/**
	 * 加载聊天信息 (单人)
	 * customerId
	sms_target_id 对方客户id
	offline_id   第一次传最大值，之后取最小的传过来（分页用）
	 */
	public static void doHttpQueryPersonChatMesg(String chatId, String serverid,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("sms_target_id", chatId);
		params.put("offline_id", serverid);
		params.put("customerId", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.TALKHISTORYSERVLET, params,
				handler);
	}
	
	
	/**
	 * 购买门票
	 * 
	 * @param groupid
	 * @param customerid
	 * @param tickettype
	 * @param handler
	 */
	public static void doHttpBuyTicket(String groupid, String customerid,
			String tickettype,String type, AsyncHttpResponseHandler handler) {
		// String groupId = request.getParameter("GROUPID");
		// String customerId = request.getParameter("CUSTOMERID");
		// String ticType = request.getParameter("TICKETTYPE");
		// String payAccount = request.getParameter("PAYACCOUNT");//支付账户
		// String payType =
		// request.getParameter("PAYTYPE");//--10-支付宝--20-银行类型--30-财富通
		RequestParams params = new RequestParams();
		params.put("GROUPID", groupid);
		params.put("CUSTOMERID", customerid);
		params.put("TICKETTYPE", tickettype);
		params.put("PAYTYPE", type);
		params.put("PAYACCOUNT", "");
		mAsyncHttpClient.get(mHttpUrls.URL_BUYTICKET, params, handler);
	}
	
	/**
	 * 购买门票
	 * 
	 * @param groupid
	 * @param customerid
	 * @param tickettype
	 * @param handler
	 */
	public static void doHttpUnionBuyTicket(String groupid, String customerid,
			String tickettype,String type, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("GROUPID", groupid);
		params.put("CUSTOMERID", customerid);
		params.put("TICKETTYPE", tickettype);
		params.put("PAYTYPE", type);
		params.put("PAYACCOUNT", "");
		mAsyncHttpClient.get(mHttpUrls.SALONUNIONPAYPAYMENT, params, handler);
	}
	
	
	/**
	 * 购买门票
	 * 
	 * @param groupid
	 * @param customerid
	 * @param tickettype
	 * @param handler
	 */
	public static void doHttpWalletBuyTicket(String PAYMENT_PASSWORD,String groupid, String customerid,
			String tickettype,String type, AsyncHttpResponseHandler handler) {
		// String groupId = request.getParameter("GROUPID");
		// String customerId = request.getParameter("CUSTOMERID");
		// String ticType = request.getParameter("TICKETTYPE");
		// String payAccount = request.getParameter("PAYACCOUNT");//支付账户
		// String payType =
		// request.getParameter("PAYTYPE");//--10-支付宝--20-银行类型--30-财富通
		RequestParams params = new RequestParams();
		params.put("GROUPID", groupid);
		params.put("CUSTOMERID", customerid);
		params.put("TICKETTYPE", tickettype);
		params.put("PAYTYPE", type);
		params.put("PAYACCOUNT", "");
		params.put("PAYMENT_PASSWORD", PAYMENT_PASSWORD);
		mAsyncHttpClient.get(mHttpUrls.SALONWALLETPAYMENT, params, handler);
	}
	

	/**
	 * 
	 * @param id
	 *            cusid
	 * @param id2
	 *            groupID
	 * @param messgeNumber
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpJoinGroupChating(String cusid, String groupID,
			String messge, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("GROUPID", groupID);
		params.put("GROUPMESSAGE", messge);
		mAsyncHttpClient.get(mHttpUrls.URL_JOINGROUPCHAT, params, handler);
	}

	/**
	 * 根据经纬度查询所在地区
	 * 
	 * @param what
	 * @param lat
	 * @param lng
	 */
	public static void queryLocation(String lat, String lng,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("lat", lat);
		params.put("lng", lng);
		mAsyncHttpClient.get(mHttpUrls.GET_LOCATION, params, handler);
	}

	/**
	 * 获取所有城市的数据
	 * 
	 * @param handler
	 */
	public static void doHttpGetLocationData(AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.GET_LOCATION_DATA, handler);
	}

	/**
	 * 邀请已经关注的人
	 */
	public static void doHttpSendAttentionFriends(String ids,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		mAsyncHttpClient.get(null, params, handler);
	}

	/**
	 * 查询黑名单列表
	 * 
	 * @param groupId
	 * @param request
	 */
	public static void doHttpQueryBlackList(String groupId, String pageSize,
			String pageNumber, AsyncHttpResponseHandler request) {
		RequestParams params = new RequestParams();
		params.put("GROUPID", groupId);
		params.put("PAGESIZE", pageSize);
		params.put("PAGENUM", pageNumber);
		mAsyncHttpClient.get(mHttpUrls.URL_FINDGROUPONLINECUSTOMERS, params,
				request);
	}

	/**
	 * 取消黑名单
	 * 
	 * @param groupId
	 * @param userId
	 * @param request
	 */
	public static void doHttpCancelBlackList(String groupId, String userId,
			AsyncHttpResponseHandler request) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERRELID", userId);
		params.put("GROUPID", groupId);
		mAsyncHttpClient.get(mHttpUrls.URL_CANCELGROUPBLACKSSET, params,
				request);
	}

	/**
	 * 加入黑名单
	 * 
	 * @param groupId
	 * @param userId
	 * @param request
	 */
	public static void doHttpJoinBlackList(String groupId, String userId,
			AsyncHttpResponseHandler request) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERRELID", userId);
		params.put("GROUPID", groupId);
		mAsyncHttpClient.get(mHttpUrls.URL_GROUPBLACKSSET, params, request);
	}

	/**
	 * 
	 * 发送聊天收费
	 * 
	 * @param userId
	 * @param doctor
	 * 
	 */
	public static void doHttpSendChatCharge(String userId, String doctor,
			AsyncHttpResponseHandler request) {
		RequestParams params = new RequestParams();
		mAsyncHttpClient.get(null, params, request);
	}

	// /**
	// *
	// * @param id cusid
	// * @param id2 groupID
	// * @param messgeNumber
	// * @param asyncHttpResponseHandler
	// */
	// public static void doHttpJoinGroupChating(String cusid, String groupID,
	// String messge,
	// AsyncHttpResponseHandler handler) {
	// RequestParams params = new RequestParams();
	// params.put("CUSTOMERID", cusid);
	// params.put("GROUPID", groupID);
	// params.put("GROUPMESSAGE", messge);
	// mAsyncHttpClient.get(mHttpUrls.URL_JOINGROUPCHAT,params,handler);
	// }

	/*		*//**
	 * 邀请已经关注的人
	 */
	/*
	 * public static void doHttpSendAttentionFriends(String
	 * ids,AsyncHttpResponseHandler handler){ RequestParams params = new
	 * RequestParams(); mAsyncHttpClient.get(null,params,handler); }
	 */

	/**
	 * 根据名称或者多美号邀请
	 */
	public static void doHttpInviteByName(String cusid, String accounts,
			int pageSize, int pageNum, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("ACCOUNTS", accounts);
		params.put("PAGESIZE", String.valueOf(pageSize));
		params.put("PAGENUM", String.valueOf(pageNum));
		mAsyncHttpClient.get(mHttpUrls.URL_INVITEBYNAME, params, handler);
	}

	/***
	 * 邀请附近的人
	 * 
	 * @param cusid
	 * @param longitude
	 * @param latitude
	 * @param pageSize
	 * @param pageNum
	 * @param handler
	 */
	public static void doHttpInviteByNearby(String cusid, Double longitude,
			Double latitude, int pageSize, int pageNum,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusid);
		params.put("LONGITUDE", String.valueOf(longitude));
		params.put("LATITUDE", String.valueOf(latitude));
		params.put("PAGESIZE", String.valueOf(pageSize));
		params.put("PAGENUM", String.valueOf(pageNum));
		mAsyncHttpClient.get(mHttpUrls.URL_INVITEBYNEARBY, params, handler);
	}

	/**
	 * 根据条件查找好友
	 * 
	 * @param json
	 * @param handler
	 */
	public static void doHttpQueryByCondition(String json,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("PARAMETER", json);
		mAsyncHttpClient.get(mHttpUrls.URL_FINDCUSTOMERSBYPARAME, params,
				handler);
	}

	/**
	 * 专家列表
	 * 
	 * flage 是否是医疗的 0非医疗 1医疗 true表示非医疗
	 * 
	 * @param handler
	 * @param AREA
	 *            地区编码 默认是0
	 * @param CLASSID
	 *            默认是0
	 */
	public static void doHttpSalonSavant(boolean flage, String merchId,
			String cusId, String pagnum, String id, String areCode,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("MERCHANTID", merchId);
		params.put("PAGENUM", "10");
		params.put("PAGESIZE", pagnum);
		params.put("PUBLICFLAG", "1");
		if (flage) {
			params.put("FLAG", "0");
		} else {
			params.put("FLAG", "1");
		}
		if (!id.equals(""))
			params.put("CLASSID", id);
		params.put("AREA", areCode);
		params.put("CUSTOMERID", cusId);
		mAsyncHttpClient.get(mHttpUrls.URL_SALONSAVANT, params, handler);
	}

	/**
	 * 获取自选商品的所有初始化数据
	 * 
	 * @param id商户id
	 * @param handler
	 */
	public static void doHttpGetFreeShopData(String id,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("MERCHANT_ID", id);
		params.put("CLASS_TYPE", "Goods");
		params.put("Type", "queryCenterUpClassDefine");
		params.put("CLASS_STATE", "10");
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_QUERY_SEACH, params, handler);
	}

	/**
	 * SHELVES_FLAG=0-未上架，1-已上架，2-撤销 GOODS_ID 这个刚进来传最大值 isRecommend 第一次传10
	 * 
	 * @param id
	 *            商户id
	 * @param handler
	 */
	public static void doHttpServerShopList(String isRecommend, String id,
			String num, String calssId, String flage,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("MERCHANT_ID", id);
		params.put("Type", "queryCenterClassAndGood");
		params.put("SHELVES_FLAG", flage);
		params.put("YEMA", num);
		params.put("CLASS_ID", calssId);
		params.put("isRecommend", isRecommend);
		params.put("CUSTOMER_ID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_SHOP_LIST2, params, handler);
	}

	/**
	 * 根据ID查询创建的话题
	 * 
	 * @param customerid
	 * @param pagesize
	 * @param pagenum
	 * @param handler
	 */
	public static void doHttpOthersPersonSalon(String customerid, int pagesize,
			int pagenum, String type,String myId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", customerid);
		params.put("PAGESIZE", String.valueOf(pagesize));
		params.put("PAGENUM", String.valueOf(pagenum));
		params.put("TYPE", type);
		params.put("MYCUSTOMERID", myId);
		
		mAsyncHttpClient.get(mHttpUrls.URL_FINDMYGROUPS, params, handler);
	}

	/**
	 * 查询话题文件
	 * 
	 * @param uderId
	 * @param groupId
	 * 
	 */
	public static void doHttpQuerySalonFile(String userId, String groupId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", userId);
		params.put("GROUPID", groupId);
		mAsyncHttpClient.get(mHttpUrls.URL_FINDSALONFILE, params, handler);
	}

	/**
	 * 
	 * 话题文件付费下载
	 * 
	 * @param userId
	 * @param groupId
	 * @param fileId
	 * 
	 */
	public static void doHttpDownloadGroupFile(String userId, String groupId,
			String fileId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", userId);
		params.put("GROUPID", groupId);
		params.put("FILEID", fileId);
		mAsyncHttpClient.get(mHttpUrls.URL_DOWNLOADGROUPFILES, params, handler);
	}

	/**
	 * 
	 * 文件下载
	 * 
	 * @param downPath
	 * @param handler
	 * 
	 */
	public static void doDownSalonFile(String downPath,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(HttpRestClient.getmHttpUrls().URL_QUERYHEADIMAGE
				+ downPath, handler);
	}
	
	/* 修改资料
	 * 
	 * @param customerId
	 * @param groupId
	 * @param inceptMessage
	 * @param releaseSystemMessage
	 * @param handler
	 */
	public static void doHttpUpdateGroupInceptMsg(String customerId,
			String groupId, Boolean inceptMessage,
			Boolean releaseSystemMessage, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", customerId);
		params.put("GROUPID", groupId);
		if (inceptMessage) {
			params.put("INCEPTMESSAGE", "Y");
		} else {
			params.put("INCEPTMESSAGE", "N");
		}
		if (releaseSystemMessage) {
			params.put("RELEASESYSTEMMESSAGE", "1");
		} else {
			params.put("RELEASESYSTEMMESSAGE", "0");
		}
		mAsyncHttpClient.get(mHttpUrls.URL_UPDATEGROUPINCEPTMSG, params,
				handler);
	}

	/**
	 * 查询专家话题列表
	 * 
	 * @param id
	 *            用户id
	 * @param shOpid
	 *            商户id
	 * @param pagnum
	 *            第几页 salonstate 话题的状态 话题存在状态(10-已发布，20-撤销，30-未发布) 只用20
	 *            已发布、未发布通过话题开发时间判断
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpSalonSavant2(String id, String shOpid,
			String pagnum, String salonstate, String clas,
			AsyncHttpResponseHandler asyncHttpResponseHandler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", id);
		params.put("MERCHANTID", shOpid);
		params.put("PAGESIZE", pagnum);
		params.put("PAGENUM", "10");
		params.put("GROUPSTATE", salonstate);
		if (!"".equals(clas))
			params.put("CLASSID", clas);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_SALON, params,
				asyncHttpResponseHandler);

	}

	/**
	 * 查看服务中心新闻评论列表
	 * 
	 * @param userId
	 * @param newsId
	 * @param oride
	 * @param type
	 * @param handler
	 */
	public static void doHttpQueryServerNewsContentDetail(String userId,
			String newsId, String oride, String type,
			ObjectHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", userId);
		params.put("NEWS_ID", newsId);
		params.put("Type", type);
		params.put("REPLY_ID", oride);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_QUERY_PINGLUN, params,
				handler);

	}

	/**
	 * 
	 * @param type
	 * @param id
	 *            商户id
	 * @param type
	 *            Salon-话题，Service-客服，Goods-商品
	 * @param string2
	 *            --商品大类状态(10-使用中，20-撤销)
	 * @param handler
	 */
	public static void doHttpServerSalonSeach(String id, String type,
			String string2, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryCenterClassDefine");
		params.put("MERCHANT_ID", id);
		params.put("CLASS_TYPE", type);
		params.put("CLASS_STATE", string2);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_QUERY_SEACH, params, handler);
	}

	/**
	 * 服务中心 新闻评论
	 * 
	 * @param userId
	 * @param newsId
	 * @param content
	 * @param string
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpServerPLunNerId(String userId, String newsId,
			String content, String string, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", userId);
		params.put("NEWS_ID", newsId);
		params.put("COMMENT_CONTENT", content);
		params.put("Type", string);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_QUERY_PINGLUN, params,
				handler);
	}

	/**
	 * 通过id查找salon的资料
	 * 
	 * @param loginUserId
	 * @param id
	 * @param handler
	 */
	public static void doHttpSalonToId(String loginUserId, String id,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", loginUserId);
		params.put("GROUPID", id);
		mAsyncHttpClient.get(mHttpUrls.URL_SALON_TO_ID, params, handler);
	}

	/**
	 * 兴趣墙按条件查找
	 */
	public static void doHttpInterestWallByCondition(String name,
			String pageSize, String type, String size,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("NAME", name);
		params.put("PAGESIZE", pageSize);
		params.put("TYPE", type);
		params.put("PAGENUM", size);
		mAsyncHttpClient.get(mHttpUrls.URL_INTERESTWALLMESSAGEBYNAME, params,
				handler);
	}

	/**
	 * 消息厅查询
	 * 
	 * @param typeId
	 * @param id
	 * @param handler
	 */
	public static void doHttpNewsRoomQuery(String typeId, String id,
			AsyncHttpResponseHandler handler) {
		// AnnouncementsHistory300Servlet?Type=queryAnnouncementsHistory300&AnnouncementsHistoryid=2147483647&typeids=3
		RequestParams params = new RequestParams();
		params.put("Type", "queryAnnouncementsHistory300");
		params.put("AnnouncementsHistoryid", id);
		params.put("typeids", typeId);
		mAsyncHttpClient.get(mHttpUrls.URL_ANNOUNCEMENTSHISTORY300SERVLET,
				params, handler);
	}


	/**
	 * 求医问药
	 */
	public static void doHttpNewsRequesDocotor(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.ASKEDDRUGSERVLET,params, handler);
	}
	
	
	/**
	 * 查询区域列表
	 * 
	 * @param handler
	 */
	public static void doHttpAreaListQuery(String type, String width,
			String height, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", type);
		params.put("SYS_CLASS_ID", "Android");
		params.put("SCREEN_X", width);
		params.put("SCREEN_Y", height);
		params.put("PICTYPE", "1");
		if ("querydomainmenudefine".equals(type)) {
			params.put("DOMAIN_ID", "A02");
		}
		doHttpAreaMap(params, handler);
	}

	/**
	 * 点击列表查看区域
	 * 
	 * @param domainId
	 * @param handler
	 */
	public static void doHttpAreaQueryById(String width, String height,
			String domainId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "querydomainPropDefine");
		params.put("SYS_CLASS_ID", "Android");
		params.put("SCREEN_X", width);
		params.put("SCREEN_Y", height);
		params.put("DOMAIN_ID", domainId);
		doHttpAreaMap(params, handler);
	}

	/**
	 * 地图操作
	 * 
	 * @param params
	 * @param handler
	 */
	private static void doHttpAreaMap(RequestParams params,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.URL_QUERYDOMAINPROPDEFINE, params,
				handler);
	}

	/**
	 * 
	 * @param customerid
	 * @param id
	 *            商户id
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpServerCneterBg(String width, String height,
			String customerid, String id,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerid", customerid);
		params.put("merchantid", id);
		params.put("SYS_CLASS_ID", "Android");
		params.put("SCREEN_X", 480+"");
		params.put("SCREEN_Y", 800+"");
		params.put("PICTYPE", "1");
//		params.put("PROP_ID", propId);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_BG_ALL_NEW, params, handler);
	}
	
	/**
	 * 
	 * @param customerid
	 * @param id
	 *            商户id
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpServerCneterBg(String width, String height,
			String customerid, String id,String propId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerid", customerid);
		params.put("merchantid", id);
		params.put("SYS_CLASS_ID", "Android");
		params.put("SCREEN_X", width);
		params.put("SCREEN_Y", height);
		params.put("PICTYPE", "1");
		params.put("PROP_ID", propId);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_BG_ALL, params, handler);
	}

	/**
	 * 
	 * @param customerid
	 * @param id
	 *            二维码扫描商户Id
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpServerMerchant(String width, String height,
			String customerid, String id, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerid", customerid);
		params.put("merchantid", id);
		params.put("SYS_CLASS_ID", "Android");
		params.put("SCREEN_X", 480+"");
		params.put("SCREEN_Y", 800+"");
		params.put("PICTYPE", "1");
		params.put("Type", "queryCenterMerchantByDc");
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_BG_ALL33, params, handler);
	}

	/**
	 * 服务中心 收藏,取消收藏,分享,
	 * 
	 * @param picId
	 * @param userid
	 * @param handler
	 *            type
	 */
	public static void doHttpServerActionForNews(String newId, String userid,
			String type, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if ("updateCenterMerchantNewscount".equals(type))
			params.put("NEWSTYPE", "SHARE");
		params.put("Type", type);
		params.put("NEWS_ID", newId);
		params.put("CUSTOMER_ID", userid);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_QUERY_PINGLUN, params,
				handler);
	}

	/**
	 * 医生设置默认数据
	 * 
	 * @param loginUserId
	 *            用户id
	 * @param handler
	 */
	public static void doHttpDoctorSetting(String loginUserId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", loginUserId);
		params.put("Type", "findCustomerinfoServiceSet");
		mAsyncHttpClient.post(mHttpUrls.URL_SERVICESETSERVLET32, params,
				handler);
	}

	/**
	 * 修改医生设置 CUSTOMER_ID 客户id ORDER_ON_OFF//开启挂号标记:
	 * 1-开；0-关；默认关！在已有挂号的情况下，可以关闭，但已有挂号的仍然服务订单执行！ ORDER_MAX//null,
	 * --挂号当前名额，可修改为小于目前已挂号人数 null 挂号最大名额 ORDER_PRICE//--挂号金额
	 * 
	 * @param loginUserId
	 * @param checked
	 * @param string
	 * @param string2
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpDoctorSetSumit(String loginUserId,
			boolean checked, String ORDER_MAX, String ORDER_PRICE,
			boolean REMIND_ON_OFF, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", loginUserId);
		if (checked) {
			params.put("ORDER_ON_OFF", "1");
		} else {
			params.put("ORDER_ON_OFF", "0");
		}
		params.put("ORDER_MAX", ORDER_MAX);
		params.put("ORDER_PRICE", ORDER_PRICE);
		if (REMIND_ON_OFF) {
			params.put("REMIND_ON_OFF", "1");
		} else {
			params.put("REMIND_ON_OFF", "0");
		}
		params.put("Type", "UpdateCustomerInfoServiceSet");
		mAsyncHttpClient.post(mHttpUrls.URL_SERVICESETSERVLET32, params,
				handler);

	}

	/**
	 * 查询挂号客户列表
	 * 
	 * @param loginUserId
	 * @param handler
	 */
	public static void doHttpDoctorSettingClient(String loginUserId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", loginUserId);
		mAsyncHttpClient.post(mHttpUrls.URL_DOCTOR_SETTING_CLIENT, params,
				handler);

	}

	/**
	 * 查询挂号客户历史
	 * 
	 * @param loginUserId
	 * @param handler
	 */
	public static void doHttpDoctorSettingClientHistory(String loginUserId,
			String pageSize, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", loginUserId);
		params.put("PAGESIZE", pageSize);
		params.put("PAGENUM", "10");
		mAsyncHttpClient.post(mHttpUrls.URL_DOCTOR_SETTING_CLIENT_HISTORY,
				params, handler);
	}

	/**
	 * 挂号
	 * 
	 * @param cusId
	 * @param doctorId
	 * @param handler
	 */
	public static void doHttpEngageTheDialogue(String cusId, String doctorId,
			AsyncHttpResponseHandler handler) {
		// CUSTOMER_ID自己的客户id
		// DOCTORID 被点击人的客户id
		RequestParams params = new RequestParams();
		params.put("Type", "IsCanTalk");
		params.put("CUSTOMER_ID", cusId);
		params.put("DOCTORID", doctorId);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params, handler);
	}
	
	
	/**
	 * 挂号 
	 * @param cusId
	 * @param doctorId
	 * @param handler
	 * @param SERVICE_TYPE_ID 1为普通服务，2为预约时段服务,3为预约面访服务
	 */
	public static void doHttpEngageTheDialogue(String cusId, String doctorId,String SERVICE_TYPE_ID,
			AsyncHttpResponseHandler handler) {
		// CUSTOMER_ID自己的客户id
		// DOCTORID 被点击人的客户id
		RequestParams params = new RequestParams();
		params.put("Type", "IsCanTalk");
		params.put("CUSTOMER_ID", cusId);
		params.put("DOCTORID", doctorId);
		params.put("SERVICE_TYPE_ID", SERVICE_TYPE_ID);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params, handler);
	}

	/**
	 * 我的医生
	 * 
	 * @param cusId
	 * @param handler
	 */
	public static void doHttpFindMyDoctors(String cusId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusId);
		mAsyncHttpClient.get(mHttpUrls.URL_FINDMYDOCTORS, params, handler);
	}


	/**
	 * 挂号
	 * 
	 * @param cusId
	 * @param doctorId
	 * @param handler
	 */
	public static void doHttpAccountCompletion(String pay_account,
			String pay_id, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		// Type= updateAccount
		params.put("Type", "updateAccount");
		params.put("PAY_ID", pay_id);
		params.put("PAY_ACCOUNT", pay_account);
		// params.put("PAY_ACCOUNT", payAccount);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params, handler);
	}
	
	/* @param doctorId
	 * @param reason
	 * @param handler
	 */
	public static void doHttpWithdrawingRegistration(String cusId,
			String doctorId, String reason, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", cusId);
		params.put("DOCTORID", doctorId);
		params.put("BACK_REASON", reason);
		mAsyncHttpClient.post(mHttpUrls.URL_WITHDRAWINGREGISTRATION, params,
				handler);
	}

	public static void doHttpWithdrawingRegistration(String order_id,String cusId,
			String doctorId, String reason, String account, String tel,
			File file1, File file2, File file3, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", cusId);
		params.put("ORDER_ID", order_id);
		params.put("DOCTORID", doctorId);
		params.put("BACK_REASON", reason);
		params.put("PAY_ACCOUNT", account);
		params.put("TRANSFER_GETTELE", tel);
		try {
			// params.put("1", file1);
			// params.put("2", file2);
			// params.put("3", file3);
			if (file1 != null) {
				params.put("1", new FileInputStream(file1), "1");
			}
			if (file2 != null) {
				params.put("2", new FileInputStream(file2), "2");
			}
			if (file3 != null) {
				params.put("3", new FileInputStream(file3), "3");
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		mAsyncHttpClient.post(mHttpUrls.URL_WITHDRAWINGREGISTRATION, params,
				handler);
	}

	/**
	 * 加载商品描述
	 * 
	 * @param valueOf
	 * @param gos
	 * @param handler
	 */
	public static void doHttpServiceDescripTion(String senderId,String valueOf, String gos,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("DESCRIPTION_SEQ", valueOf);
		params.put("Type", "queryCenterGoodsDescription301");
		params.put("GOODS_ID", gos);
		if(senderId != null){
			params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
			params.put("FRIENDS_ID",senderId);
		}
		mAsyncHttpClient.post(mHttpUrls.URL_SERVER_SHOP_LIST2, params, handler);

	}

	/**
	 * 查看 退号
	 * 
	 * @param loginUserId
	 * @param clientId
	 * @param type
	 * @param handler
	 */
	public static void doHttpLookDoctorClientExit(String ORIDERID,String loginUserId,
			String clientId, String type, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("DOCTORID", loginUserId);
		params.put("CUSTOMER_ID", clientId);
		params.put("ORDER_ID", ORIDERID);
		params.put("Type", type);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params, handler);
	}

	/**
	 * 通过名字搜索药品
	 * @param FRIENDS_ID //发送者id
	 * @param stringExtra
	 *            药品名字
	 * @param valueOf
	 *            页数
	 * @param asyncHttpClient
	 */
	public static void doHttpServerShopByName(String yema,String FRIENDS_ID,int type,String stringExtra,
			String valueOf, boolean flag, ObjectHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if(type == -1){//需要统计
			params.put("GOODS_NAME", stringExtra);
			params.put("GOODS_ID", valueOf);
			params.put("Type", "queryCenterGoodsManageBykeywrold");
			params.put("YEMA", yema);
			params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
			params.put("FRIENDS_ID",FRIENDS_ID);
			mAsyncHttpClient.get(mHttpUrls.URL_SERVER_SHOP_LIST2, params,handler);
		}else if(type == -2){//多个名字
			params.put("Type","queryCenterGoodsManageByname");
			params.put("NEW_GOODS_NAMES",stringExtra);
			mAsyncHttpClient.get(mHttpUrls.URL_SERVER_SHOP_LIST2, params,handler);
		}else if(type == -3){//从主界面搜索进来 传了name 和商户id进行查询
			params.put("MERCHANT_ID", FRIENDS_ID);
			params.put("GOODS_NAME", stringExtra);
			params.put("GOODS_ID", valueOf);
			params.put("Type", "queryCenterGoodsManageByname");
			mAsyncHttpClient.get(mHttpUrls.FINDCENTERCLASSANDGOODSERVLET33, params,handler);
		}else if (flag) {// 通过code查询
			params.put("option", "4");
			params.put("MEDICINEGENERALCODE", stringExtra);
			mAsyncHttpClient.get(mHttpUrls.URL_QUERYMEDICINESSERVLET, params,handler);
		} else {// 通过名字查询
			params.put("GOODS_NAME", stringExtra);
			params.put("GOODS_ID", valueOf);
			params.put("Type", "queryCenterGoodsManageByname");
			mAsyncHttpClient.get(mHttpUrls.FINDCENTERCLASSANDGOODSERVLET33, params,handler);
		}
//		http://220.194.46.213:8010/sms_web/FindCenterClassAndGoodServlet?Type=queryCenterGoodsManageByname&NEW_GOODS_NAMES=
	}

	/**
	 * 根据Id查询个人资料
	 * 
	 * @param friendId
	 * @param userId
	 * @param handler
	 */
	public static void doHttpFindCustomerInfoByCustId(String type,
			String qrCode, String friendId, String userId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (!TextUtils.isEmpty(qrCode)) {
			params.put("TYPE", type);
			params.put("QRCODE", qrCode);
		} else {
			params.put("CUSTOMERID", friendId);
		}
		params.put("MYCUSTOMERID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.URL_FINDCUSTOMERINFOBYCUSTID, params,handler);
	}

	public static void doHttpFindCustomersByCenterGroup(String groupid,
			String customerid, String merchantid,
			AsyncHttpResponseHandler handler) {
		// String groupid = request.getParameter("GROUPID");//群id
		// String customerid = request.getParameter("CUSTOMERID");//客户id
		// String merchantid = request.getParameter("MERCHANTID");//商户id

		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", customerid);
		params.put("GROUPID", groupid);
		params.put("MERCHANTID", merchantid);
		mAsyncHttpClient.get(mHttpUrls.URL_FINDCUSTOMERSBYCENTERGROUP, params,
				handler);

	}

	/**
	 * 删除群消息
	 * 
	 * @param grouId
	 *            群id
	 * @param type
	 *            1全部删除
	 * @param ids
	 *            id字符串
	 * @param handler
	 */
	public static void deleteGroupMessages(String grouId, int type, String ids,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (type == 1) {// 全部删除
			params.put("Type", "deleteGroupAllTalkmessage");
		} else {
			params.put("Type", "deleteGroupTalkmessage");
			params.put("offids", ids);
		}
		params.put("groupid", grouId);
		mAsyncHttpClient.get(
				mHttpUrls.URL_DeleteCustomerGroupChatLog300Servlet, params,
				handler);
	}

	/**
	 * 执行抽奖
	 * 
	 * @param id
	 * @param what
	 * @param handler
	 */
	public static void requestLottery(String id,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerid", id);
		mAsyncHttpClient.get(mHttpUrls.URL_LUCKY, params, handler);
	}

	/**
	 * 密码重置
	 * 
	 * @param phone
	 * @param code
	 * @param psw
	 * @param handler
	 */
	public static void doHttpResetPaswd(String phone, String code, String psw,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("phone", phone);
		params.put("code", code);
		params.put("psw", psw);
		params.put("type", "updatepsw");
		mAsyncHttpClient.get(mHttpUrls.URL_FORGOTPASSWORDSERVLET, params,
				handler);
	}

	/**
	 * 
	 * @param userId
	 * @param handler
	 */
	public static void doHttpQueryCollection(String userId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", userId);
		params.put("Type", "queryCenterMerchantNewsCustomer");
		mAsyncHttpClient.get(mHttpUrls.URL_SERVER_QUERY_PINGLUN, params,
				handler);
	}

	/**
	 * IncomeServlet
	 * 药品推荐详细
	 * 	TYPE=1
		CUSTOMERID 客户ID
		PAGENUM=1 页号
			PAGECOUNT=20 页面数量
	 * @param type
	 * @param loginUserId
	 * @param pagNum
	 * @param handler
	 */
	public static void doHttpRecommendationCount(String loginUserId,
			int pagNum,String date, ObjectHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "1");
		params.put("CUSTOMERID", loginUserId);
		params.put("PAGENUM", pagNum + "");
		params.put("PAGECOUNT", "12");
		params.put("TIME", date);
		mAsyncHttpClient.get(mHttpUrls.RECOMMENDSHOPS302, params, handler);
	}

	/**
	 * 查询药品推荐的点击次数 推荐次数
	 * TYPE=2
	CUSTOMERID 客户ID
	GOODSID 商品ID
	MERCHANTID 商品商户ID
	 * @param date
	 * @param loginUserId
	 * @param goodsName
	 * @param handler
	 */
	public static void doHttpRecommentOnlickCount(String date,
			String loginUserId, String goodsName,String MERCHANTID,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("TYPE", "2");
		params.put("CUSTOMERID", loginUserId);
		params.put("GOODSID", goodsName);
		params.put("TIME", date);
		params.put("MERCHANTID", MERCHANTID);
		mAsyncHttpClient.get(mHttpUrls.RECOMMENDSHOPS302, params, handler);

	}

	/**
	 * 更改医师资料
	 * 
	 * @param requestParams
	 * @param asyncHttpResponseHandler
	 *            //http://192.168.16.113:8899/sms_web/DoctorQualification31"
	 *            mHttpUrls.URL_OPEN_DORTOR2
	 */
	public static void doHttpUpdateDoctor(RequestParams requestParams,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.post(mHttpUrls.URL_OPEN_DORTOR2, requestParams,
				handler);
	}

	/**
	 * 修改个人资料
	 * 
	 * @param requestParams
	 * @param handler
	 */
	public static void doHttpUpdatePerson(RequestParams requestParams,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.post(mHttpUrls.URL_UPDATE_CUSTOMINFO, requestParams,
				handler);
	}

	/**
	 * 加载离线消息
	 * @param customerid
	 *            客户id
	 * @param customer_version
	 * @param client_version
	 * @param serverid
	 * @param objectHttpResponseHandler
	 */
	public static void doHttpLoadOffMessage(String customerid,
			ObjectHttpResponseHandler handler) {
		String version = SystemUtils.getAppVersionName(HTalkApplication.getHTalkApplication());
		RequestParams params = new RequestParams();
		params.put("customerid", customerid);
		params.put("customer_version", "1");
		params.put("client_version",version);
		params.put("serverid", "1");
		params.put("isAndroid", "1");
		mAsyncHttpClient.post(mHttpUrls.URL_LOAD_OFF_MESSAGES, params, handler);
	}

	/**
	 * 生成二维码
	 * 
	 * @param id
	 *            商户ID 或者是 用户ID
	 * @param handler
	 * @param type
	 *            0 个人 1 是商户2一健康
	 */
	public static void doHttpGenerateDimensionalCode(int type, String id,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		switch (type) {
		case 2:
			mAsyncHttpClient.post(mHttpUrls.URL_YIJIANKANG,
					params, handler);
			break;
		case 1:
			params.put("MERCHANT_ID", id);
			mAsyncHttpClient.post(mHttpUrls.URL_CENTERDIMENSIONALCODESERVLET,
					params, handler);
			break;
		default:
			params.put("customerid", id);
			mAsyncHttpClient.post(mHttpUrls.URL_GENERATEDIMENSIONALCODESERVLET,
					params, handler);
			break;
		}

	}

	/**
	 * 服务中心 收藏or取消收藏商户 Type=saveCollectionCenter or deleteCollectionCenter
	 */
	public static void doHttpServerCollect(boolean isSave, String merchant_id,
			String userId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (!isSave) {
			params.put("Type", "deleteCollectionCenter");
		} else {
			params.put("Type", "saveCollectionCenter");
		}
		params.put("CUSTOMER_ID", userId);
		params.put("MERCHANT_ID", merchant_id);
		mAsyncHttpClient.get(mHttpUrls.SERVER_COLLECT, params, handler);
	}

	/**
	 * 获取服务中心收藏的商户
	 * 
	 * @param loginUserId
	 * @param widthPixels
	 * @param heightPixels
	 * @param handler
	 */
	public static void doHttpServerCollectDisplay(String loginUserId,
			int widthPixels, int heightPixels, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryCollectionCenter");
		params.put("CUSTOMER_ID", loginUserId);
		params.put("SYS_CLASS_ID", "Android");
		params.put("SCREEN_X", String.valueOf(widthPixels));
		params.put("SCREEN_Y", String.valueOf(heightPixels));
		mAsyncHttpClient.get(mHttpUrls.SERVER_COLLECT, params, handler);
	}
	/**
	 * 获取服务中心收藏的商户
	 * @param loginUserId
	 * @param widthPixels
	 * @param heightPixels
	 * @param handler
	 */
	public static void doHttpServerCollect(RequestParams params, AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.SERVER_COLLECT, params, handler);
	}

	/**
	 * 删除订单号
	 * 
	 * @param orderId
	 * @param handler
	 */
	public static void doHttpDeleteOrder(String orderId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("ORDERID", orderId);
		mAsyncHttpClient.get(mHttpUrls.DELETEGROUPORDER, params, handler);
	}

	/**
	 * 我的话题
	 * 
	 * @param customerId
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpFindGroupsList(String customerId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", customerId);
		mAsyncHttpClient.post(mHttpUrls.FINDGROUPSLIST, params, handler);
	}

	/**
	 * {"20":"1","10":"0","30":"8","40":"0","90":"9","70":"0","80":"0","60":"0",
	 * "100":"0","50":"0","200":"0"} 返回 医生10 助理20 朋友30 话题40 医生话题50 挂号名单60 患者名录70 新闻80 家园90
	 * 诊所100 加载消息数量 兴趣墙200
	 * 	医生：10
					助理：20
					朋友：30
					话题：40
					医生话题：50
					挂号名单：60
					患者名录：70
					新闻：80
					家园：90
					诊所:100(3.0)
					粉丝:110
					服务中心里面公告板未读数:120
					诊所：140(3.2)
					患者管理:150  150 = 60+70
					90=10+20+30+40
					100 = 50+60+70
	 * @param loginUserId
	 *            客户id
	 * @param newsId
	 *            新闻id
	 * @param asyncHttpResponseHandler
	 *            messageCount?module=10,20,30&customerid=
	 *            PICID  兴趣墙的id
	 */
	public static void doHttpMyZoneCount(String module, String loginUserId,
			String newsId,String picsId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerid", loginUserId);
		params.put("NEWSID", newsId);
		params.put("PICID", picsId);
		params.put("module", module);
		mAsyncHttpClient.get(mHttpUrls.MESSAGECOUNT, params, handler);
	}

	/**
	 * 虚拟医生聊天药品查询
	 * 
	 * @param option
	 * @param code
	 * @param handler
	 */
	public static void doHttpQueryMedicinesNewServlet(String option,
			String code, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("option", option);
		params.put("generalCode", code);
		mAsyncHttpClient.get(mHttpUrls.QUERYMEDICINESNEWSERVLET, params,
				handler);
	}

	/**
	 * 点击退号进入退号页面
	 */
	public static void doHttpServiceSetServlet(String selfId,
			String customerid, String order_id,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", selfId);
		params.put("DOCTORID", customerid);
		params.put("Type", "isCanBackOrder");
		params.put("ORDER_ID", order_id);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params, handler);
	}

	/**
	 * 退款和查看的按钮
	 * 
	 * @param selfId
	 * @param customerid
	 * @param handler
	 * @param type  Refund  ViewRefunds
	 *            退款或者查看     
	 */
	public static void doHttpRefundOrWatch(String selfId, String customerid,String payId,
			String type, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", selfId);
		params.put("DOCTORID", customerid);
		params.put("PAY_ID", payId);
		params.put("Type", type);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params,handler);
	}
	
	/**
	 * 退款提交
	 * @param selfId
	 * @param customerid
	 * @param tel
	 * @param account
	 * @param handler
	 */
	public static void doHttpRefundSubmit(String selfId, String customerid,String tel,String account,String payId,boolean bank,String openbank,String name,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", selfId);
		params.put("DOCTORID", customerid);
		params.put("TRANSFER_GETTELE", tel);
		params.put("PAY_ACCOUNT", account);
		params.put("Type", "ModifyRefund");
		params.put("PAY_ID", payId);
		if(!bank){
//		params.put("PAY_ID", payId);
		}else{
			params.put("TRANSFER_NAME", openbank);
			params.put("TRANSFER_GETNAME", name);
		}
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params,handler);
	}

	public static void doHttpAgreeVierson(String version,String customerid,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "signTheAgreement");
		params.put("system_version", version);
		params.put("customerid", customerid);
		mAsyncHttpClient.get(mHttpUrls.USERAGREE, params,handler);
	}
	
	
	/**
	 *	获取我的医生列表
	 * @param customerid
	 * @param handler
	 */
	public static void doHttpMyDoctorList(String customerid,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerId", customerid);
		mAsyncHttpClient.get(mHttpUrls.FINDMYDOCTORS32, params,handler);
	}
	
	/**
	 * customerId 我的id  type 列表序号  pageSize 第几页  pageNum 每页几条
	 * @param customerid
	 * @param handler
	 */
	public static void doHttpMyDoctorDetailList(String customerid,String type,int pageSize,int pageNum, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerId", customerid);
		params.put("type", type);
		params.put("pageSize", pageSize+"");
		params.put("pageNum", pageNum+"");
		mAsyncHttpClient.get(mHttpUrls.FINDMYDOCTORDETAILS32, params,handler);
	}
	
	/**
	 *  Type=queryOrderMessage
		ORDER_ID 订单id
		CUSTOMER_ID 客户id
		DOCTORID 医生id
      我的医生 按钮  订单 状态
	 * @param customerid
	 * @param type
	 * @param pageSize
	 * @param pageNum
	 * @param handler
	 */
	public static void doHttpMyDoctorOrderDetail(String customerid,String orderId,String docId, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", customerid);
		params.put("DOCTORID", docId);
		params.put("ORDER_ID", orderId);
		params.put("Type","queryOrderMessage");
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	
	/**
	 * 医生馆选择服务类型
	 * @param handler
	 */
	public static void doHttpDoctorSelectService(AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		mAsyncHttpClient.get(	mHttpUrls.FINDSERVICETYPE, params,handler);
	}
	
	
	/**
	 * 医生馆大科室的搜索
	 * @param handler
	 */
	public static void doHttpDcotorDepartments(String merchantId,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if (merchantId != null) {
			params.put("merchantId", merchantId);
			params.put("flag", "3");
		}else {
			params.put("flag", "0");
		}
		mAsyncHttpClient.get(mHttpUrls.FindOfficeHasDoctor, params,handler);
	}
	
	/**
	 * 医生馆小科室的搜索
	 * @param handler
	 */
	public static void doHttpMinDcotorDepartments(String merchantId,String officeUpperCode,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("flag", "1");
		params.put("officeUpperCode",officeUpperCode);
		if (merchantId != null) {//三甲传 医生馆不用传
			params.put("merchantId", merchantId);
		}
		mAsyncHttpClient.get(mHttpUrls.FindOfficeHasDoctor, params,handler);
	}
	/**
	 * 科室查询
	 * @param handler
	 */
	public static void doHttpFindkeshi(AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("flag", "2");
		mAsyncHttpClient.get(mHttpUrls.FindOfficeHasDoctor,params,handler);
	}
	
	/**
	 * 加入购物车
	 * @param goodsInfo
	 * @param askTime
	 * @param handler
	 */
	public static void doHttpAddCart(String goodsInfo,String merchantID,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("option", "TOCART");
		params.put("merchantID", merchantID);
		params.put("customerID", SmartFoxClient.getLoginUserId());
		params.put("goodsInfo", goodsInfo);
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params,handler);
	}	
	
	
	/**
	 * 结算接口：
	 */
	public static String doHttpShopPay(String goodsInfo,String cartID,String merchantID,String customerID,org.json.JSONObject object,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("merchantID", object.optString("merchantID"));
		params.put("customerID", SmartFoxClient.getLoginUserId());
		params.put("sec", customerID+object.optString("sec"));
		params.put("cartID", cartID);
		params.put("askTime", object.optString("askTime"));
		params.put("addr",  object.optString("addr"));
		params.put("username", object.optString("username"));
		params.put("goodsInfo", goodsInfo);
//		mAsyncHttpClient.post("http://m.yaofang.cn/cart/getJKLGoodsList", params,handler);
		return params.toString();
	}
	
	
	/**
	 * 直接购买
	 */
	public static void doHttpBuyMedicine(String merchantID,String goodsId,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("option", "GOBUY");
		params.put("customerID", SmartFoxClient.getLoginUserId());
		params.put("merchantID",merchantID);
		params.put("GOODSID", goodsId);
		mAsyncHttpClient.post(mHttpUrls.YAOFANGWANGSERVLET, params,handler);
	}
	
	/**
	 * 医生馆主界面
	 * @param parameter json 数据
	 * @param handler
	 */
	public static void doHttpDoctorMain(String parameter,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("PARAMETER", parameter);
		mAsyncHttpClient.get(mHttpUrls.FINDDOCTORS32, params,handler); 
	}
	
	/**
	 * 医生馆精确查找
	 * @param duomeihao  多美号或者医生姓名或者医生专长
	 * @param userid  用户ID
	 * @param pageSize  第几页
	 * @param pageNum 每页几条
	 * @param handler
	 */
	public static void doHttpDoctorSearchResult(String duomeihao ,String userid , int pageSize , int pageNum ,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("duomeihao",duomeihao);
		params.put("pageSize", String.valueOf(pageSize));
		params.put("pageNum", String.valueOf(pageNum));
		params.put("customerId", userid);
		mAsyncHttpClient.get(mHttpUrls.FINDDOCTORBYNAMEORSPECIALLYORDUOMEI, params,handler);
	}
	
	
	/**
	 * 购物车列表
	 * @param goodsInfo
	 * @param askTime
	 * @param handler
	 */
	public static void doHttpCartList(String merchantID,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("option", "CARTDETAIL");
		params.put("merchantID", merchantID);
		params.put("customerID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params,handler);
	}
	
	
	/**
	 * 订单列表
	 * @param goodsInfo
	 * @param askTime
	 * @param handler
	 */
	public static void doHttpCarOrdertList(String merchantID,int pagenum,int pagecount,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("option", "ORDERINFO2");
		params.put("merchantID", merchantID);
		params.put("customerID", SmartFoxClient.getLoginUserId());
		params.put("PAGENUM", pagenum+"");
		params.put("PAGECOUNT", pagecount+"");
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params,handler);
	}
	/**
	 * 订单列表
	 * @param goodsInfo
	 * @param askTime
	 * @param handler
	 */
	public static void doHttpYAOFANGWANGSERVLET(String merchantID,int pagenum,int pagecount,String date,String GOODNAME,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("option", "ORDERINFO2");
		params.put("merchantID", merchantID);
		params.put("customerID", SmartFoxClient.getLoginUserId());
		params.put("PAGENUM", pagenum+"");
		params.put("PAGECOUNT", pagecount+"");
		params.put("TIME", date);
		params.put("GOODNAME", GOODNAME);
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params,handler);
	}
	
	
	/**
	 * 订单详情列表
	 * @param goodsInfo
	 * @param askTime
	 * @param handler
	 */
	public static void doHttpCarOrderDetailList(String merchantID,String orderID,int pagenum,int pagecount,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("option", "ORDERDETAIL33");
		params.put("merchantID", merchantID);
		params.put("orderID", orderID);
		params.put("PAGENUM", pagenum+"");
		params.put("PAGECOUNT", pagecount+"");
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params,handler);
	}
	
	
//	option=CLEARCART
//			merchantID	商户ID  药房网默认为1
//			customerID	客户ID
	/**
	 * 清空购物车
	 * @param handler
	 */
	public static void doHttpClearCartList(String merchantID,AsyncHttpResponseHandler handler){
		RequestParams params = new  RequestParams();
		params.put("option", "CLEARCART");
		params.put("merchantID", merchantID);
		params.put("customerID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params,handler);
	}
	/**
	 * 查找正在使用壹健康的好友---匹配通讯录
	 * @param userId
	 * @param parame
	 * @param handler
	 */
	public static void doHttpFindContactInHealth(String userId,String parame,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", SmartFoxClient.getLoginUserId());
		params.put("Type", "findphoneFriend");
		params.put("PARAME", parame);
		mAsyncHttpClient.post(mHttpUrls.MATCHINGCONTACTSSERVLET, params,handler);
	}
/**
 * @param name备注名称
 * @param loginUserId我的id
 * @param userid对方id 
 * @param handler
 */
	public static void doHttpRemarkName(String name, String loginUserId,
			String userid, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("myCustomerId", loginUserId);
		params.put("otherCustomerId", userid);
		params.put("remarksName", name);
		mAsyncHttpClient.get(mHttpUrls.FRIENDREMARKNAME, params,handler);
		
	}
/**
 * Type=updateCustomerinfoServiceSet
REMIND_ON_OFF 服务提醒免扰模式开关(1-开；0-关；默认关)
CUSTOMER_ID 客户id
 * @param isChecked
 * @param handler
 */
	public static void doHttpDoctorFree_zone(boolean isChecked,
		AsyncHttpResponseHandler handler) {
	RequestParams params = new RequestParams();
	params.put("Type", "updateCustomerinfoServiceSet");
	params.put("CUSTOMER_ID", SmartFoxClient.getLoginUserId());
	if(isChecked){
		params.put("REMIND_ON_OFF", "1");
	}else{
		params.put("REMIND_ON_OFF", "0");
	}
	mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	
	}
/**
 * Type=queryServiceTypeDefine
	CUSTOMER_ID 客户id
 * @param handler
 */
	public static void doHttpDoctorSettingUI(AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryServiceTypeDefine");
		params.put("CUSTOMER_ID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.SERVICESETSERVLET410, params,handler);
	}
	
	/**
	 * customerId 我的id  type 列表序号  pageSize 第几页  pageNum 
	 * 每页几条 date（格式：201303）日期  serviceTypeId 服务类型  patientGroupId 
	 * 患者分组Id（只有服务历史列表有date和serviceTypeId；
	 * 只有我关注的患者列表有patientGroupId）
	 */
	public static void doHttpDoctorOption(String loginUserId, String index,
			String string, String valueOf, String date, String serviceTypeId,
			String mGroupId, ObjectHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerId", loginUserId);
		params.put("type", index);
		params.put("pageSize", valueOf);
		params.put("pageNum", string);
		params.put("date", date);
		params.put("serviceTypeId",serviceTypeId);
		params.put("patientGroupId", mGroupId);
		mAsyncHttpClient.get(mHttpUrls.FINDMYPATIENTDETAILS32, params,handler);
	}
/**
 * customerId 我的id
 * @param loginUserId
 * @param asyncHttpResponseHandler
 */
	public static void doHttpFindMyPatientList(String loginUserId,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("customerId", loginUserId);
		mAsyncHttpClient.get(mHttpUrls.FINDMYPATIENTLIST, params,handler);
	}
	/**
	 * 创建特殊人群
	 * Type=insertSpecialPriceGroup
		SPECIAL_GROUP 服务特殊收费人群名称
		SPECIAL_PRICE 特殊服务金额
	 * @param string
	 * @param string2
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpCreateDoctorServiceGroup(
			String SPECIAL_GROUP,int SPECIAL_PRICE,String SERVICE_ITEM_ID ,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("SPECIAL_GROUP", SPECIAL_GROUP);
		params.put("Type", "insertSpecialPriceGroup");
		params.put("SPECIAL_PRICE", SPECIAL_PRICE+"");
		params.put("SERVICE_ITEM_ID", SERVICE_ITEM_ID);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	/**
	 * 查询特殊收费人群
	 * @param type
	 * @param id
	 * @param handler
	 * Type=querySpecialPriceGroup
		SERVICE_ITEM_ID 医生服务项目ID
	 */
	public static void doHttpDoctorGroupList(String id,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("SERVICE_ITEM_ID", id);
		params.put("Type", "querySpecialPriceGroup");
		mAsyncHttpClient.get(mHttpUrls.DOCTORSETTINGUI, params,handler);
	}
	/**
	 * 查询系统定义服务类型细分
	 * Type=queryServiceTypeSub
		SERVICE_TYPE_ID 医生服务类型ID
	 * @param id
	 * @param handler
	 */
	public static void doHttpDoctorMarkCommon(String id,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("SERVICE_TYPE_ID", id);
		params.put("Type", "queryServiceTypeSub");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.DOCTORSETTINGUI, params,handler);
		
	}
	/**
	 * 删除特殊收费人群
	 * Type=deleteSpecialPriceGroup
		SPECIAL_GROUP_ID 服务特殊收费人群ID
	 * @param id
	 * @param handler
	 */
	public static void doHttpDeleteServiceGroup(String id,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("SPECIAL_GROUP_ID", id);
		params.put("Type", "deleteSpecialPriceGroup");
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
/**
 * 公告板-录入公告、留言与回复数据接口
 * 	OPTION=SAVEMESSAGE
	CUSTOMERID 接受留言的客户ID
	MESSAGECUSTOMERID 留言的客户ID
	CONTENT 留言内容
	TYPE 10公告20留言30回复
	TIME 回复时间14
	REPLYID 回复留言ID(回复的时候才存在)
	注：当医生回复时：CUSTOMERID与MESSAGECUSTOMERID均为医生客户ID
	
	id 如果是留言就是接受留言的客户ID,如果是回复留言就是自己的id
	CONTENT 留言内容或者回复内容
	TYPE 10公告20留言30回复
	REPLYID 回复留言id (如果是留言 就不用传)
	给医生留言
	OPTION=SAVEMESSAGE&CUSTOMERID=4200&MESSAGECUSTOMERID=4630&CONTENT="我的留言"&TYPE=20
 * @param handler
 */
	public static void doHttpLeaveMessage(String id,String CONTENT,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("OPTION","SAVEMESSAGE");
		params.put("CUSTOMERID",id);
		params.put("MESSAGECUSTOMERID",SmartFoxClient.getLoginUserId());
		params.put("CONTENT",CONTENT );
		params.put("TYPE","20" );
		mAsyncHttpClient.post(mHttpUrls.LEAVEMESSAGE, params,handler);
	}
	//医生发布公告
	//OPTION=SAVEMESSAGE&CUSTOMERID=4200&MESSAGECUSTOMERID=4200&CONTENT="医生公告"&TYPE=10
	public static void doHttpLeaveMessage(String CONTENT,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("OPTION","SAVEMESSAGE");
		params.put("CUSTOMERID",SmartFoxClient.getLoginUserId());
		params.put("MESSAGECUSTOMERID",SmartFoxClient.getLoginUserId());
		params.put("CONTENT",CONTENT );
		params.put("TYPE","10" );
		mAsyncHttpClient.post(mHttpUrls.LEAVEMESSAGE, params,handler);
	}
	
	/**
	 * 医生馆查看服务内容
	 * @param CUSTOMER_ID
	 * @param handler
	 */
	public static void doHttpSearchServiceContent(RequestParams params , AsyncHttpResponseHandler handler ){
		mAsyncHttpClient.post(mHttpUrls.DOCTORSETTINGUI, params,handler);
	}
	
	/**
	 * 客户查询医生公告板
	 * OPTION=QUERYALL
		CUSTOMERID 接受留言的客户ID
		MESSAGECUSTOMERID 留言的客户ID
		LOADPAGE 加载方式，默认为0
		注：医生客户时：CUSTOMERID与MESSAGECUSTOMERID均为医生客户ID
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpLookLeaveMessage(String CUSTOMERID,String loadNum,String date,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
//		params.put("OPTION", "QUERYALL");
		params.put("OPTION", "QUERYALLPUBLISH");
		params.put("CUSTOMERID",CUSTOMERID);
		params.put("LOADPAGE", loadNum);
		params.put("DATE", date);
		params.put("MESSAGECUSTOMERID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.LEAVEMESSAGE, params,handler);
	}
	//医生自己查询留言  和日期查询  OPTION=QUERYBYDATE
	//OPTION=QUERYALL&CUSTOMERID=4200&LOADPAGE=0
	//OPTION=QUERYBYDATE&CUSTOMERID=4200&DATE=20131117&LOADPAGE=
	public static void doHttpLookUserLeaveMessage(String leavCustomerId,String date,String loadNum,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		if(!date.equals("")){
			params.put("DATE",date);
			params.put("OPTION", "QUERYBYDATE");
		}else if(leavCustomerId != null){
			params.put("OPTION","QUERY");
			params.put("MESSAGECUSTOMERID",leavCustomerId);
		}else{
//			params.put("OPTION", "QUERYALL");
			params.put("OPTION", "QUERYALLPUBLISH");
		}
		params.put("LOADPAGE", loadNum);
		params.put("CUSTOMERID",SmartFoxClient.getLoginUserId());//SmartFoxClient.getLoginUserId()
		mAsyncHttpClient.get(mHttpUrls.LEAVEMESSAGE, params,handler);
	}
	/**
	 * 回复留言
	 * OPTION=SAVEMESSAGE&CUSTOMERID=4200&MESSAGECUSTOMERID=4200&CONTENT="医生回复留言"&TYPE=30&REPLYID=留言ID
	 * content 回复内容
	 * messageId 留言id
	 */
	public static void doHttpRepatLeaveMessage(String content,String messageId,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("OPTION", "SAVEMESSAGE");
		params.put("CUSTOMERID",SmartFoxClient.getLoginUserId());
		params.put("MESSAGECUSTOMERID", SmartFoxClient.getLoginUserId());
		params.put("CONTENT",content);
		params.put("TYPE", "30");
		params.put("REPLYID", messageId);
		mAsyncHttpClient.post(mHttpUrls.LEAVEMESSAGE, params,handler);
	}
	/**
	 * 删除留言
	 * @param str
	 * @param handler
	 */
	public static void doHttpdeleteDoctorMessage(String str,AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		RequestParams params = new RequestParams();
		params.put("OPTION", "DELETE");
		params.put("CUSTOMERID",SmartFoxClient.getLoginUserId());
		params.put("INFO", str);
		mAsyncHttpClient.get(mHttpUrls.LEAVEMESSAGE, params,handler);
	}
	/**
	 * 按天咨询 初始化数据
	 * @param id
	 * @param handler
	 */
	public static void doHttpQureyDocotorCommonOption(String id,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryCustomerServiceItemRmap");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SERVICE_TYPE_SUB_ID", id);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	/**修改特殊收费人群
	 * Type=updateSpecialPriceGroup
	SERVICE_ITEM_ID 医生服务项目ID
	SPECIAL_GROUP_ID 服务特殊收费人群ID
	SPECIAL_GROUP 服务特殊收费人群名称
	SPECIAL_PRICE 服务金额
	 */
	public static void doHttpUpdateDoctorServiceGroup(String iTEM_ID,
			String gROUP_ID, String sPECIAL_PRICE, String sPECIAL_GROUP,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "updateSpecialPriceGroup");
		params.put("SERVICE_ITEM_ID",iTEM_ID);
		params.put("SPECIAL_GROUP_ID", gROUP_ID);
		params.put("SPECIAL_GROUP", sPECIAL_GROUP);
		params.put("SPECIAL_PRICE", sPECIAL_PRICE);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**
	 * 编辑医生说明
	 * Type=editCustomerServiceItemDesc
		CUSTOMER_ID 客户id
		SERVICE_TYPE_ID 医生服务类型ID
		SERVICE_ITEM_DESC 医生服务类型自定义说明
	 */
	public static void doHttpEditExplain(String SERVICE_TYPE_ID,String SERVICE_ITEM_DESC,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "editCustomerServiceItemDesc");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SERVICE_TYPE_ID", SERVICE_TYPE_ID);
		params.put("SERVICE_ITEM_DESC", SERVICE_ITEM_DESC);
		mAsyncHttpClient.post(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	/**
	 * Type=updateCustomerServiceItem
		CUSTOMER_ID 客户id
		SERVICE_ITEM_ID 医生服务项目ID
		ORDER_ON_OFF 开启标记: 1-开；0-关；默认关！
		SERVICE_PRICE 服务金额
		SERVICE_MAX 服务最大名额
	 */
	public static void doHttpSubmitDocotorService(String SERVICE_ITEM_ID,boolean checked, int mSmoney,
			int mSNum2, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "updateCustomerServiceItem");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		if(checked){
			params.put("ORDER_ON_OFF", "1");
		}else{
			params.put("ORDER_ON_OFF", "0");
		}
		params.put("SERVICE_ITEM_ID", SERVICE_ITEM_ID);
		params.put("SERVICE_MAX", mSNum2+"");
		params.put("SERVICE_PRICE", mSmoney+"");
		mAsyncHttpClient.post(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	/**
	 * 查找特殊收费人员
	 * Type=findSpecialPriceGroupMember
		CUSTOMER_ID 客户id
		SPECIAL_GROUP_ID 服务特殊收费人群ID
	 */
	public static void doHttpQueryGroupMember(String groupId,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "findSpecialPriceGroupMember");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SPECIAL_GROUP_ID", groupId);
		mAsyncHttpClient.post(mHttpUrls.DOCTORSETTINGUI, params,handler);
		
	}
	
	/**
	 * 		删除收费人群成员
			Type=deleteSpecialPriceGroupMember
			SPECIAL_GROUP_ID 服务特殊收费人群ID
			CUSTOMER_ID 客户id
	 */
	public static void doHttpDeleteGroupMember(String id,String groupid,AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		RequestParams params = new RequestParams();
		params.put("Type", "deleteSpecialPriceGroupMember");
		params.put("CUSTOMER_ID",id);
		params.put("SPECIAL_GROUP_ID", groupid);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	public static void doHttpServiceSetServletRJ320(RequestParams params ,AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**进入医生服务内容编辑页面
	 * Type=queryEditorDoctorServer
	CUSTOMER_ID 客户id
	 * @param handler
	 */
	public static void doHttpQueryDoctorContent(String SERVICE_TYPE_SUB_ID,String SERVICE_TYPE_ID,String SERVICE_ITEM_ID,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryEditorDoctorServer");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SERVICE_TYPE_ID", SERVICE_TYPE_ID);
		params.put("SERVICE_TYPE_SUB_ID", SERVICE_TYPE_SUB_ID);
		params.put("SERVICE_ITEM_ID", SERVICE_ITEM_ID);
		mAsyncHttpClient.post(mHttpUrls.DOCTORSETTINGUI, params,handler);
	}
	
	/**添加服务内容
	 * Type=addDoctorServler
		SERVICE_CONTENT 服务内容名称
		SERVICE_DESC 服务内容描述 
		CUSTOMER_ID 客户id
	 */
	public static void doHttpCreateDoctorServiceContent(String type,String SERVICE_CONTENT_ID,String SERVICE_CONTENT,
			String SERVICE_DESC, AsyncHttpResponseHandler handler) {
		// TODO Auto-generated method stub
		RequestParams params = new RequestParams();
		if("updateDoctorServler".equals(type)){//修改
			params.put("Type", "updateDoctorServler");
			params.put("SERVICE_CONTENT_ID", SERVICE_CONTENT_ID);
		}else{
			params.put("Type", "addDoctorServler");
		}
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SERVICE_CONTENT",SERVICE_CONTENT);
		params.put("SERVICE_DESC",SERVICE_DESC);
		mAsyncHttpClient.post(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**删除服务内容
	 * Type=deleteDoctorServler
		SERVICE_CONTENT_ID医生服务内容ID
	 * @param id
	 * @param handler
	 */
	public static void doHttpDeleteServiceItem(String id,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "deleteDoctorServler");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SERVICE_CONTENT_ID",id);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**
	 * 选择服务内容提交
	 * Type=selectDoctorService
		SERVICE_ITEM_ID 医生服务项目ID
		PARAME 这个放进jsonarray里面，参数是所选择的内容的id，即SERVICE_CONTENT_ID
	 * @param id
	 * @param array
	 * @param handler
	 */
	public static void doHttpDoctorSubmintServiceContent(String id, String array,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "selectDoctorService");
		params.put("SERVICE_ITEM_ID",id);
		params.put("PARAME",array);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	/**进入预约服务
	 * Type=queryYuyue
	CUSTOMER_ID 客户id
	SERVICE_TYPE_ID 医生服务类型ID
	 */
	public static void doHttpQueryMarkTalkinita(String sERVICE_TYPE_ID,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryYuyue");
		params.put("SERVICE_TYPE_ID",sERVICE_TYPE_ID);
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	/**
	 * 预约开关
	 * Type=updateYuyueOrderOnOff
		ORDER_ON_OFF -开启标记: 1-开；0-关
		SERVICE_TYPE_ID 医生服务类型ID
		CUSTOMER_ID 客户id
	 * @param id
	 * @param isChecked
	 * @param handler
	 */
	public static void doHttpUpdateYUYUE(String id,boolean isChecked, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "updateYuyueOrderOnOff");
		params.put("SERVICE_TYPE_ID",id);
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		if(isChecked){
			params.put("ORDER_ON_OFF","1");
		}else{
			params.put("ORDER_ON_OFF","0");
		}
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**查询已有预约服务时段
	 *  Type=queryRepeatTime
		CUSTOMER_ID 客户id
		SERVICE_TYPE_ID 医生服务类型ID
	*/
	public static void doHttpChoiceDateMarkTalk(String ID,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryRepeatTime");
		params.put("SERVICE_TYPE_ID",ID);
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.DOCTORSETTINGUI330, params,handler);
		
	}
	
/**"
 * 添加编辑预约时段
 *	Type=addYuyueTime  Type=updateYuyueTime
	SERVICE_TYPE_ID      --医生服务类型ID
	 ORDER_ON_OFF     --开启标记: 1-开；0-关；默认关！在已被购买的情况下，可以关闭，但已有挂号的仍然服务订单执行！
	 SERVICE_MAX    --服务最大名额，可修改为小于目前已挂号人数 NULL 挂号最大名额
	 SERVICE_PRICE    --服务金额
	 SERVICE_ITEM_DESC   --医生服务项目说明
	 SERVICE_HOUR   --医生服务项目服务时间总和(小时)
	 SERVICE_TIME_BEGIN   --服务时间段开始时间HH24MISS 时间14位
	 SERVICE_TIME_END   --服务时间段结束时间HH24MISS 时间14位
	 PARAME 里面放的是数组，装的是周几
	 REPEAT_BATCH    --预约服务时段设置批次号
	 REPEAT_FLAG     --预约服务时段是否重复标记(1-是，0-否)
	 SERVICE_PLACE
 */
//	public static void doHttpCreateService(String SERVICE_ITEM_ID,String type,String SERVICE_TYPE_ID,String ORDER_ON_OFF,String SERVICE_MAX,
//	String 	SERVICE_PRICE,String SERVICE_ITEM_DESC,String SERVICE_TIME_BEGIN,String SERVICE_TIME_END
//	,String PARAME,String REPEAT_BATCH,String REPEAT_FLAG,String address,AsyncHttpResponseHandler handler){
//		RequestParams params = new RequestParams();
//		params.put("Type", type);
//		params.put("SERVICE_TYPE_ID",SERVICE_TYPE_ID);
//		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
//		params.put("ORDER_ON_OFF", ORDER_ON_OFF);
//		params.put("SERVICE_MAX",SERVICE_MAX);
//		params.put("SERVICE_PRICE",SERVICE_PRICE);
//		params.put("SERVICE_TIME_BEGIN",SERVICE_TIME_BEGIN+"00");
//		params.put("SERVICE_TIME_END",SERVICE_TIME_END+"00");
//		params.put("SERVICE_ITEM_DESC",SERVICE_ITEM_DESC);
//		
//		if("1".equals(ORDER_ON_OFF)){
//			params.put("PARAME",PARAME);	
//		}
//		
//		if(type.equals("addYuyueTime")||type.equals("PeriodCovered")){
//			params.put("REPEAT_FLAG",REPEAT_FLAG);
//		}else{
//			params.put("SERVICE_ITEM_ID",SERVICE_ITEM_ID);
//		}
//		if(!"".equals(REPEAT_BATCH))
//		params.put("REPEAT_BATCH",REPEAT_BATCH);
//		if(SERVICE_TYPE_ID.equals("3")){
//			params.put("SERVICE_PLACE",address);
//		}
//		mAsyncHttpClient.post(mHttpUrls.URL_SERVICESETSERVLET33, params,handler);
//	}
	public static void doHttpCreateService(String SERVICE_ITEM_ID,String type,String SERVICE_TYPE_ID,String ORDER_ON_OFF,String SERVICE_MAX,
	String 	SERVICE_PRICE,String SERVICE_ITEM_DESC,String SERVICE_TIME_BEGIN,String SERVICE_TIME_END
	,String PARAME,String REPEAT_BATCH,String REPEAT_FLAG,String address,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("Type", type);
		params.put("SERVICE_TYPE_ID",SERVICE_TYPE_ID);
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
//		params.put("ORDER_ON_OFF", ORDER_ON_OFF);
		params.put("SERVICE_MAX",SERVICE_MAX);
		params.put("SERVICE_PRICE",SERVICE_PRICE);
		params.put("SERVICE_TIME_BEGIN",SERVICE_TIME_BEGIN+"00");
		params.put("SERVICE_TIME_END",SERVICE_TIME_END+"00");
		params.put("SERVICE_ITEM_DESC",SERVICE_ITEM_DESC);
		
		if("1".equals(ORDER_ON_OFF)){
			params.put("PARAME",PARAME);	
		}
		params.put("REPEAT_FLAG",REPEAT_FLAG);
		
		if(type.equals("updateYuyueTime")||type.equals("updateYuyueTimeCovered")){
			params.put("SERVICE_ITEM_ID",SERVICE_ITEM_ID);
		}
		
		if(!"".equals(REPEAT_BATCH))
		params.put("REPEAT_BATCH",REPEAT_BATCH);
		
		if(SERVICE_TYPE_ID.equals("3")){
			params.put("SERVICE_PLACE",address);
		}
		mAsyncHttpClient.post(mHttpUrls.URL_SERVICESETSERVLET33, params,handler);
	}
	
	/**
	 * 查询已经的分组列表
	 */
	public static void doHttpQueryGroups(String customerId,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("customerId", customerId);
		mAsyncHttpClient.post(mHttpUrls.FINDPATIENTGROUPINFO, params,handler);
	}
	
	/**
	 * 添加分组
	 * @param customerId
	 * @param patientGroup
	 * @param handler
	 */
	public static void doHttpAddGroup(String customerId,String patientGroup,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("customerId", customerId);
		params.put("patientGroup",patientGroup); 
		mAsyncHttpClient.post(mHttpUrls.ADDPATIENTGROUP, params,handler);
	}
	
	/**
	 * 移除分组
	 * @param customerId
	 */
	public static void doHttpRemoveGroup(String customerId,String patientGroupId,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("customerId", customerId);
		params.put("patientGroupId",patientGroupId);
		mAsyncHttpClient.post(mHttpUrls.REMOVEPATIENTGROUP, params,handler);
	}
	
	/**
	 * 我关注的患者分组列表
	 */
	public static void doHttpQueryGroups(String customerid,String type,String pageSize,String pageNum,String serviceTypeId,String patientGroupId,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("customerId", customerid);
		params.put("type", type);
		params.put("pageSize", pageSize);// 第几页
		params.put("pageNum", pageNum);//每页几条
		params.put("serviceTypeId", serviceTypeId);
		params.put("patientGroupId", patientGroupId);
		mAsyncHttpClient.post(mHttpUrls.FINDMYPATIENTDETAILS32, params,handler);
	}
	/**
	 * 公告板未读
	 * OPTION=LEAVECOUNT&CUSTOMERID=4200
	 * @param handler
	 */
	public static void doHttpMessageLeaveCount(AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("OPTION", "LEAVECOUNT");
		params.put("CUSTOMERID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.LEAVEMESSAGE, params,handler);
	}
	
	//Type=deleteYuyueTime
	// CUSTOMER_ID     --医生客户ID
	// SERVICE_TYPE_ID      --医生服务类型ID
	// REPEAT_BATCH    --预约服务时段设置批次号
	public static void doHttpDeleteServiceTime(String SERVICE_ITEM_ID,
			String rEPEAT_BATCH,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("SERVICE_ITEM_ID", SERVICE_ITEM_ID);
		params.put("CUSTOMER_ID", SmartFoxClient.getLoginUserId());
		params.put("Type", "deleteYuyueTime");
		params.put("REPEAT_BATCH", rEPEAT_BATCH);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
		
	}
	/**
	 * 查看订单详情
	 *  	Type=queryOrderMessage
			ORDER_ID 订单id
			CUSTOMER_ID 客户id
			DOCTORID 医生id
	 */
	public static void doHttpLookOrderDetails(String oRDER_ID,
			String cUSTOMER_ID,String DOCTORID,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("DOCTORID", DOCTORID);
		params.put("CUSTOMER_ID",cUSTOMER_ID);
		params.put("ORDER_ID", oRDER_ID);
		params.put("Type", "queryOrderMessage");
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**type
	 * 延时服务 AgreedToDelay ||医生停止服务DoctorStopService||客户取消CustomersCancel
		ORDER_ID 订单id
		DOCTORID 医生id
		CUSTOMER_ID 客户id
	 */
	public static void doHttpAgreedToDelay(String CANCEL_REASON,String type, String doctorId,String clientId,String oRDER_ID, AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type",type);
		params.put("DOCTORID",doctorId);
		params.put("CUSTOMER_ID", clientId);
		params.put("ORDER_ID", oRDER_ID);
		if("DoctorsCancel".equals(type))
		params.put("CANCEL_REASON", CANCEL_REASON);
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**
	 * 
	 * 查询话题门票
	 * @param groupId
	 * @param type
	 * @param handler
	 */
	public static void doHttpQuerySalonPrice(String groupId,String type,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("groupId",groupId);
		params.put("type",type);
		mAsyncHttpClient.get(mHttpUrls.SALONSPECIALPRICEGROUPSET, params,handler);
	}
		/**
	 * 
	 * 添加特殊收费组
	 * @param groupId
	 * @param specialGroup
	 * @param specialPrice
	 * 
	 */
	public static void doHttpQuerySalonSpecialGroup(String groupId,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("groupId",groupId);
		params.put("type","findSalonSpecialPriceGroup");
		mAsyncHttpClient.post(mHttpUrls.SALONSPECIALPRICEGROUPSET, params,handler);
	}
	
	/**
	 * 
	 * 添加特殊收费组
	 * @param groupId
	 * @param specialGroup
	 * @param specialPrice
	 * 
	 */
	public static void doHttpAddSpecialGroup(String groupId,String specialGroup,String specialPrice,String specialPriceMonth,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("groupId",groupId);
		params.put("specialGroup",specialGroup);
		params.put("specialPrice",specialPrice);
		params.put("specialPriceMonth",specialPriceMonth);
		params.put("type","addSalonSpecialPriceGroup");
		mAsyncHttpClient.post(mHttpUrls.SALONSPECIALPRICEGROUPSET, params,handler);
	}
	
	/**
	 * 
	 * 话题特殊成员接口
	 * @param params
	 * @param handler
	 */
	public static void doHttpSalonSpecialPriceGroupSet(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.post(mHttpUrls.SALONSPECIALPRICEGROUPSET, params,handler);
	}
	
	/**
	 * 请求购买者列表
	 * OPTION=BUYINFO
		CUSTOMERID 客户ID
		MERCHANTID 商品商户ID
		GOODSID=7433 商品ID
		PAGENUM=1 页号
		PAGECOUNT=20 页面数量
	 */
	public static void doHttpRecommentShopperList(String mERCHANTID,String gOODSID, String pAGENUM,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("OPTION","BUYINFO");
		params.put("CUSTOMERID",SmartFoxClient.getLoginUserId());
		params.put("MERCHANTID", mERCHANTID);
		params.put("GOODSID", gOODSID);
		params.put("PAGENUM", pAGENUM);
		params.put("PAGECOUNT", "20");
		mAsyncHttpClient.get(mHttpUrls.RECOMMENDSHOPS302, params,handler);
	}
	/**
	 * 
	 *服务内容查询 
	 * @param paramsm
	 * @param handler
	 * 
	 */
	public static void doHttpServiceSetServlet320(RequestParams paramsm,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.DOCTORSETTINGUI, paramsm,handler);
	}
	
	public static void doHttpServiceSetServlet330(RequestParams paramsm,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.DOCTORSETTINGUI330, paramsm,handler);
	}
	
	/**
	 * 查询购买者
	 */
	public static void doHttpFindCustomerByServiceItemId(RequestParams paramsm,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.FindCustomerByServiceItemId, paramsm,handler);
	}
	
	public static void doHttpServicesetservletrj320(RequestParams paramsm,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, paramsm,handler);
	}
	
	/**
	 * 医疗类专家列表
	 * @param params
	 * @param handler
	 */
	public static void doHttpServerMedicalCenterDoctorList(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.URL_SALONSAVANT, params, handler);
	}
/**
 * 公告板 查询个人的所有留言
 * 	OPTION=QUERY
	CUSTOMERID 客户ID
	MESSAGECUSTOMERID 留言的客户ID 
	DATE 日期201003
	LOADPAGE加载方式
 * @param handler
 */
	public static void doHttpDoctorMessageLookSingleAll(String LOADPAGE,String MESSAGECUSTOMERID,String date,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("OPTION","QUERY");
		params.put("CUSTOMERID",SmartFoxClient.getLoginUserId());
		params.put("MESSAGECUSTOMERID", MESSAGECUSTOMERID);
		params.put("DATE", date);
		params.put("LOADPAGE", LOADPAGE);
		mAsyncHttpClient.get(mHttpUrls.LEAVEMESSAGE, params, handler);
	}
	
	public static void doHttpTest(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params, handler);
	}
	
	
	/**
	 * 普通咨询
	 * @param customer_id
	 * @param doctorid
	 * @param payType
	 * @param service_type_id
	 * @param service_item_id
	 * @param service_type_sub_id
	 * @param handler
	 */
	public static String doHttpPayService(String SELECTDATE,String customer_id,String doctorid,String service_type_id,String service_item_id,String content,String patient_name,String patient_phone,String service_place,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("DOCTORID", doctorid);	
		params.put("Type", "MedicallyRegistered");
		params.put("SERVICE_ITEM_ID", service_item_id);
		params.put("SERVICE_TYPE_ID", service_type_id);
		params.put("SELECTDATE", SELECTDATE);
		if (service_type_id.equals("2")) {
			params.put("ADVICE_CONTENT", content);
		}else if(service_type_id.equals("3") ){
			params.put("ADVICE_CONTENT", content);
			params.put("PATIENT_NAME", patient_name);
			params.put("PATIENT_PHONE", patient_phone);
			params.put("SERVICE_PLACE", service_place);
		}
		params.put("CUSTOMER_ID", customer_id);
 		return params.toString();
	}
	
	/**
	 * 删除订单
	 * @param customer_id
	 * @param doctorid
	 * @param handler
	 */
	public static void doHttpDeleteOrder(String customer_id,String doctorid, String order_id,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("Type", "deleteOrder");
		params.put("DOCTORID", doctorid);
		params.put("CUSTOMER_ID", customer_id);
		params.put("ORDER_ID", order_id);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params,handler);
	}
	
	public static void doHttpFindmypatientdetails32(RequestParams params,AsyncHttpResponseHandler handler)
	{
		mAsyncHttpClient.get(mHttpUrls.FINDMYPATIENTDETAILS32, params,handler);
	}
	
	public static void doHttpAddPatientGroupMember(RequestParams params,AsyncHttpResponseHandler handler)
	{
		mAsyncHttpClient.get(mHttpUrls.AddPatientGroupMember, params,handler);
	}

	/**
	 * 查看删除服务内容
	 * @param SERVICE_ITEM_ID
	 * @param handler
	 */
	public static void doHttpQueryDoctorContentDeleted(String SERVICE_ITEM_ID,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryDeleteServerContent");
		params.put("SERVICE_ITEM_ID", SERVICE_ITEM_ID);
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.post(mHttpUrls.DOCTORSETTINGUI, params,handler);
	}
	
	/**
	 * 还原删除的服务内容
	 * @param sERVICE_ITEM_ID
	 * @param parame
	 * @param asyncHttpResponseHandler
	 */
	public static void doHttpDoctorServiceReductionContent(
			String sERVICE_ITEM_ID, String parame,
			AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "huanYuan");
//		params.put("SERVICE_ITEM_ID", sERVICE_ITEM_ID);
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SERVICE_CONTENT_ID",parame);
		mAsyncHttpClient.post(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}

	/**
	 * 根据服务内容 查看服务历史
	 * @param date
	 * @param sERVICE_CONTENT_ID
	 * @param handler
	 */
	public static void doHttpDoctorServiceContentHistory(String date,
			String SERVICE_CONTENT_ID,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryFuwuhistory410");
		params.put("CUSTOMER_ID",SmartFoxClient.getLoginUserId());
		params.put("SERVICE_CONTENT_ID",SERVICE_CONTENT_ID);
		params.put("SELECT_CANCEL_TIME", date);
		mAsyncHttpClient.post(mHttpUrls.DOCTORSETTINGUI, params,handler);
	}

	public static void doHttpDocotorAddTimeXianZhi(AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", "queryXianzhi");
		mAsyncHttpClient.post(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}

	/**
	 * 客户端延时服务
	 * Type=sendAddServiceTime
		ORDER_ID 订单id
		CUSTOMER_ID 客户id
		DOCTORID 医生id
	 */
	public static void doHttpDelayed(String customer_id,String doctorid, String order_id,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("Type", "sendAddServiceTime");
		params.put("DOCTORID", doctorid);
		params.put("CUSTOMER_ID", customer_id);
		params.put("ORDER_ID", order_id);
		addHttpHeader("username", SmartFoxClient.getLoginUserInfo().getUsername());
		addHttpHeader("password", SmartFoxClient.getSmartFoxClient().getUserPas());
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**
	 * 提醒医生
	 * Type=remindDoctor
		PAY_ID 订单号
		DOCTORID 医生id
		CUSTOMER_ID 客户id
	 */
	public static void doHttpRemindDoctor(String customer_id,String doctorid, String order_id,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("Type", "remindDoctor");
		params.put("DOCTORID", doctorid);
		params.put("CUSTOMER_ID", customer_id);
		params.put("ORDER_ID", order_id);
		addHttpHeader("username", SmartFoxClient.getLoginUserInfo().getUsername());
		addHttpHeader("password", SmartFoxClient.getSmartFoxClient().getUserPas());
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}
	
	/**
	 * 取消预约
	 * @param customer_id
	 * @param doctorid
	 * @param order_id
	 * @param content
	 * @param handler
	 */
	public static void doHttpCanceleservation(String customer_id,String doctorid, String order_id,String content,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("Type", "updateServiceOrder");
		params.put("DOCTORID", doctorid);
		params.put("CUSTOMER_ID", customer_id);
		params.put("ORDER_ID", order_id);
		params.put("CANCEL_REASON", content);
		//addHttpHeader("username", SmartFoxClient.getLoginUserInfo().getUsername());
		//addHttpHeader("password", SmartFoxClient.getSmartFoxClient().getUserPas());
		mAsyncHttpClient.get(mHttpUrls.DOCTORFREE_ZONE, params,handler);
	}

	public static void doHttpFindPatientsByContentId(
			RequestParams requestParams,JsonsfHttpResponseHandler jsonsfHttpResponseHandler) {
		mAsyncHttpClient.post(mHttpUrls.FINDPATIENTSBYCONTENTID, requestParams,jsonsfHttpResponseHandler);
	}
	
	/**
	 * @param customer_id
	 * @param doctorid
	 * @param order_id
	 * @param content
	 * @param handler
	 */
	public static String doHttpPayment(String SELECTDATE,String customer_id,String doctorid, String service_type_id,String service_item_id,String service_type_sub_id,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("Type", "MedicallyRegistered");
		params.put("DOCTORID", doctorid);
		params.put("SELECTDATE", SELECTDATE);
		params.put("CUSTOMER_ID", customer_id);
		params.put("SERVICE_ITEM_ID", service_item_id);
		params.put("SERVICE_TYPE_SUB_ID", service_type_sub_id);
		params.put("SERVICE_TYPE_ID", service_type_id);
		/*mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params,handler);*/
		return params.toString();
	}
	
	/**
	 * 三甲医院精确查找
	 * @param params
	 * @param handler
	 */
	public static void doHttpFindMerchantDocByNameOrSpeciallyOrDuomei(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.FindMerchantDocByNameOrSpeciallyOrDuomei, params,handler);
	}
	
	public static void dowloadProgressImage(BinaryHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("ClientType", "0");
		mAsyncHttpClient.post(mHttpUrls.URL_DownLoadPropagateViewServlet,params,handler);
	}
	
	/**
	 * 
	 * 医生指南
	 * @param handler
	 * 
	 */
	public static void doHttpQueryDoctorHelper(String type,AsyncHttpResponseHandler handler){
		//http://220.194.46.213:8010/sms_web/FindGuideDirectory?guideVersion=3.2.0&type=
		RequestParams params = new RequestParams();
		params.put("guideVersion", HTalkApplication.getHelpAppVersionName());
		params.put("type",type);
		mAsyncHttpClient.post(mHttpUrls.URL_FindGuideDirectory,params,handler);
	}
	
	/**
	 * 聊天初始化
	 * @param senderId
	 * @param reciveId
	 * @param handler
	 */
	public static void doHttpInitChat(String senderId,String reciveId,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", senderId);
		params.put("DOCTORID", reciveId);
		params.put("INTALK", "1");
		params.put("Type", "IsCanTalk");
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET32, params, handler);
	}
	
	public static void doHttpFindActivities(RequestParams paramsm,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.URL_FindActivities,paramsm,handler);
	}
	
	public static void doHttpUpdateCustomerPrizeRecord(RequestParams paramsm,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.URL_UpdateCustomerPrizeRecord,paramsm,handler);
	}
	
	public static void doHttpFindIsGetPrize(RequestParams paramsm,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.URL_FindIsGetPrize,paramsm,handler);
	}
	/**
	 * 钱包余额
	 * @param cus
	 * @param handler
	 */
	public static void doHttpWalletBalance(String cus,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("CUSTOMERID", SmartFoxClient.getLoginUserId());
		mAsyncHttpClient.get(mHttpUrls.GETYELLOWBOYSERVLET, params, handler); 
	}
	
	/**
	 * 钱包设置
	 * @param params
	 * @param handler
	 */
	public static void doHttpWalletSetting(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.SETWALLETINFOSERVLET, params, handler);
	}
	
	/**
	 * 进出流水
	 * @param params
	 * @param handler
	 */
	public static void doHttpBalanceChange(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.GETBALANCECHANGESERVLET, params, handler);
	}
	
	/**
	 * 结算
	 * @param params
	 * @param handler
	 */
	public static void doHttpSettlement(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.GOBALANCESERVLET, params, handler);
	}
	
	/**
	 * 清空购物车
	 * @param handler
	 */
	public static void doHttpYAOFANGWANGSERVLET(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params, handler);
		}
	
	/**
	 * 钱包支付
	 * @param PAYMENT_PASSWORD
	 */
	public static void doHttpWalletPay(String url,String PAYMENT_PASSWORD,AsyncHttpResponseHandler handler){
		String[] str = url.split("&");
		RequestParams params = new RequestParams();
		for (int i = 0; i < str.length; i++) {
			String[] keys = str[i].split("=");
			params.put(keys[0], keys[1]);
		}
		params.put("PAYMENT_PASSWORD", PAYMENT_PASSWORD);
		mAsyncHttpClient.post(mHttpUrls.URL_SERVICESETSERVLET33,params, handler);
	}
	
	public static void doHttpWalletBalanceServlet(String SELECTDATE,String  url,AsyncHttpResponseHandler handler){
		String[] str = url.split("&");
		RequestParams params = new RequestParams();
		params.put("SELECTDATE", SELECTDATE);
		for (int i = 0; i < str.length; i++) {
			String[] keys = str[i].split("=");
			if (keys[0].equalsIgnoreCase("type")) {
				params.put("Type", "getWalletBalance");
			}else {
				params.put(keys[0], keys[1]);
			}
		}
		mAsyncHttpClient.get(mHttpUrls.WalletBalanceServlet, params, handler);
	}
	
	public static void doHttpGetQianBao(String  id,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", SmartFoxClient.getLoginUserId());
		params.put("Type", "getQianbao");
		mAsyncHttpClient.get(mHttpUrls.WalletBalanceServlet, params, handler);
	}
	
	/**
	 * 支付宝支付方式
	 * @param url
	 * @param handler
	 */
	public static void doHttpGetAliPay(String url,AsyncHttpResponseHandler handler){
		String[] str = url.split("&");
		RequestParams params = new RequestParams();
		for (int i = 0; i < str.length; i++) {
			String[] keys = str[i].split("=");
			if (keys[0].equalsIgnoreCase("type")) {
				params.put("Type", "MedicallyRegistered330");
			}else {
				params.put(keys[0], keys[1]);
			}
		}
		mAsyncHttpClient.post(mHttpUrls.URL_SERVICESETSERVLET33, params,handler);
	}
	
	/**
	 * 银联支付方式
	 * @param url
	 * @param handler
	 */
	public static void doHttpGetUnionPay(String url,AsyncHttpResponseHandler handler){
		String[] str = url.split("&");
		RequestParams params = new RequestParams();
		for (int i = 0; i < str.length; i++) {
			String[] keys = str[i].split("=");
			if (keys[0].equalsIgnoreCase("type")) {
				params.put("Type", "MedicallyRegistered");
			}else {
				params.put(keys[0], keys[1]);
			}
		}
		mAsyncHttpClient.post(mHttpUrls.URL_SERVICESETSERVLET33, params,handler);
	}
	
	/**
	 * 充值
	 * @param recharge_money
	 * @param pay_type_id
	 * @param handler
	 * 充值类型--10-支付宝 --20-银行类型
	 */
	public static void doHttpTopUp(String recharge_money,String pay_type_id,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("CUSTOMER_ID", SmartFoxClient.getLoginUserId());
		params.put("RECHARGE_MONEY", recharge_money);
		params.put("Type", "Recharge");
		params.put("PAY_TYPE_ID", pay_type_id);
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET33, params, handler);
	}
		
	/**
	 * 记录商品跳转和返回的时间
	 * @param merchantID
	 * @param orderID
	 * @param status
	 */
	public static void doHttpTimeStep(String merchantID,String status){
		RequestParams params = new RequestParams();
		params.put("option", "SHOPPING");
		params.put("customerID", SmartFoxClient.getLoginUserId());
		params.put("merchantID", merchantID);
		params.put("status", status);
		params.put("time", TimeUtil.getNowDataForFourteen());
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET, params, null);
	}
	
	public static void doHttpGetPrize(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.URL_GetPrize,params, handler);
	}
	
	/**
	 * 查看购物车是否有商品
	 * @param params
	 * @param toastJsonHttpResponseHandler
	 */
	public static void doHttpShopCarData(RequestParams params,AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.YAOFANGWANGSERVLET,params, handler);
	}
	
	/**
	 *公告板
	 * @param params
	 * @param toastJsonHttpResponseHandler
	 */
	public static void doHttpRequestMessage(RequestParams params,AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.LEAVEMESSAGE,params, handler);
	}
	
	/**
	 * 退款到钱包
	 */
	public static void doHttpRefundWallet(String orderId,AsyncHttpResponseHandler handler){
		RequestParams params = new RequestParams();
		params.put("orderId", orderId );
		mAsyncHttpClient.get(mHttpUrls.RefundToWallet,params, handler);
	}
	
	public static void doHttpUpdateCustomerSexOrPic(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.post(mHttpUrls.UpdateCustomerSexOrPic,params, handler);
	}
	
	/**
	 * 主页查询
	 * @param params
	 * @param handler
	 */
	public static void doHttpHomePageQueryServlet(RequestParams params,
			AsyncHttpResponseHandler handler) {
		mAsyncHttpClient.get(mHttpUrls.HomePageQueryServlet,params, handler);
	}
	
	/**
	 * 加入工作室
	 * @param params
	 */
	public static void doHttpEnterhome(){
		RequestParams params = new RequestParams();
		params.put("Type", "saveDoctorClientLog");
		params.put("CUSTOMER_ID", SmartControlClient.getControlClient().getUserId());
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET33,params,null);
	}
	

	/**
	 * 加入工作室
	 * @param params
	 */
	public static void doHttpExithome(){
		RequestParams params = new RequestParams();
		params.put("Type", "updateDoctorClientLog");
		params.put("CUSTOMER_ID", SmartControlClient.getControlClient().getUserId());
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET33,params,null);
	}
	
	
	/**
	 * 删除服务时段之前调用接口
	 * @param string
	 * @param userId
	 * @param pARAME
	 * @param handler
	 */
	public static void doHttpDeleteServiceTimeBefor(String type,String userId, String pARAME,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("Type", type);
		params.put("CUSTOMER_ID", SmartControlClient.getControlClient().getUserId());
		if(!type.equals("deleteAllYuyueTime")){
			params.put("PARAME", pARAME);
		}
		mAsyncHttpClient.get(mHttpUrls.URL_SERVICESETSERVLET33,params,handler);
	}

	public static void doHttpFindInitialize132(RequestParams params,AsyncHttpResponseHandler handler){
		mAsyncHttpClient.get(mHttpUrls.FindInitialize132,params,handler);
	}
	
/**
 * 设置 关于  意见反馈
 * @param value
 * @param toastJsonHttpResponseHandler
 */
	public static void dohttpFeedBack(String value,AsyncHttpResponseHandler handler) {
		RequestParams params = new RequestParams();
		params.put("content", value);
		params.put("customerid", SmartControlClient.getControlClient().getUserId());
		mAsyncHttpClient.post(mHttpUrls.CUSTOMERCOMPLAINTSERVLET33,params,handler);	
	}
	
	/**
	 * 设置 关于  意见反馈
	 * @param value
	 * @param toastJsonHttpResponseHandler
	 */
		public static void dohttpFeedBackServerCenter(String merchantid,String value,AsyncHttpResponseHandler handler) {
			RequestParams params = new RequestParams();
			params.put("content", value);
			params.put("merchantid", merchantid);
			params.put("customerid", SmartFoxClient.getLoginUserId());
			mAsyncHttpClient.get(mHttpUrls.CUSTOMERCOMPLAINTSERVLET33,params,handler);	
		}
		
		public static void doHttpFindFriendsByNicknameOrAccount(RequestParams params,AsyncHttpResponseHandler handler){
			mAsyncHttpClient.get(mHttpUrls.FindFriendsByNicknameOrAccount,params,handler);	
		}
		
		public static void doHttpFindFriendsByGroup(RequestParams params,AsyncHttpResponseHandler handler){
			mAsyncHttpClient.get(mHttpUrls.FindFriendsByGroup,params,handler);	
		}
		
		public static void doHttpGetActivitiesDesc(RequestParams params,AsyncHttpResponseHandler handler){
			mAsyncHttpClient.get(mHttpUrls.GetActivitiesDesc,params,handler);	
		}
		
		//删除离线消息
//		CUSTOMER_ID
//		LISTID（json数组，里面放字符串类型id）
		public static void doHttpDeleteLeaveOnlineMessage(String loginUserId,
				String string, AsyncHttpResponseHandler handler) {
			RequestParams params = new RequestParams();
			params.put("CUSTOMER_ID", loginUserId);
			params.put("LISTID", string);
			mAsyncHttpClient.post(mHttpUrls.DELTE_OFFONIE_MESSAGE,params,handler);	
		}
		
		//快速回复
		/**
		 * 编辑快速回复
			Type=saveQuick
			QUICK_REPLY_CONTENT 内容
			CUSTOMER_ID 客户id
			
			删除快速回复
			Type=deleteQuick
			QUICK_REPLY_ID 内容id
			
				加载快速回复列表
				Type=queryQuick
				CUSTOMER_ID 客户id
		 * @param params
		 * @param handler
		 */
		public static void doHttpQUICKREPLYUPSAVSERVLET(RequestParams params,AsyncHttpResponseHandler handler){
			mAsyncHttpClient.get(mHttpUrls.QUICKREPLYUPSAVSERVLET,params, handler);
		}
		public static void doHttpQUICKREPLYSERVLET(RequestParams params,AsyncHttpResponseHandler handler){
			mAsyncHttpClient.get(mHttpUrls.QUICKREPLYSERVLET,params, handler);
		}
		//获取我的合作伙伴列表
//		CUSTOMER_ID
//		LISTID（json数组，里面放字符串类型id）
		public static void doHttpDoctorMyPartner(String loginUserId,
				 AsyncHttpResponseHandler handler) {
			RequestParams params = new RequestParams();
			params.put("CUSTOMERID", loginUserId);
			mAsyncHttpClient.get(mHttpUrls.DOCTORMYPARTNER,params,handler);	
		}
	/**
	 * 转发
	 * @param params
	 * @param jsonHttpResponseHandler
	 */
		public static void doHttpInterestForwardNum(RequestParams params,
				AsyncHttpResponseHandler jsonHttpResponseHandler) {
			mAsyncHttpClient.get(mHttpUrls.DOCTORMYPARTNER, params,jsonHttpResponseHandler);
			
		}
		/**
		 * 密码重置第一步（验证码）
		 * 
		 * @param phone
		 * @param code
		 */
		public static void doHttpResetPaswdOne(String phone, String code, 
				AsyncHttpResponseHandler handler) {
			RequestParams params = new RequestParams();
			params.put("phone", phone);
			params.put("code", code);
			mAsyncHttpClient.get(mHttpUrls.CAPTCHACODE, params,handler);
		}
		
		
		public static void doHttpFINDDOCTORSBYASSISTANT(String  tr,AsyncHttpResponseHandler handler){
			RequestParams params = new  RequestParams();
			params.put("PARAMETER", tr);
			mAsyncHttpClient.get(mHttpUrls.FINDDOCTORSBYASSISTANT, params,handler); 
		}
}
